Skip to content

Fix negative maxDepth in Jetty 12.1 fullScan hot-reload scanner#507

Merged
copybara-service[bot] merged 1 commit into
mainfrom
fix-jetty-scan-depth
Jun 10, 2026
Merged

Fix negative maxDepth in Jetty 12.1 fullScan hot-reload scanner#507
copybara-service[bot] merged 1 commit into
mainfrom
fix-jetty-scan-depth

Conversation

@ludoch

@ludoch ludoch commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator
  • Resolves IllegalArgumentException on startup by setting scan depth to Integer.MAX_VALUE (which represents unlimited depth in Jetty 12.1) instead of the invalid negative -1 value.
  • Applies the fix to both EE8 and EE11 configurations to ensure both support scanning deeply nested directories.
  • Added e2e test (DevAppServerFullScanTest) that verifies the server boots without exceptions and successfully reloads when a nested resource file (> 3 levels deep) changes.
  • Verified that on the original code, the EE8 server crashes on startup, and the EE11 server fails to trigger reloads for changes nested deeper than 3 directory levels.

@ludoch

ludoch commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator Author

Fix for #506

- Resolves IllegalArgumentException on startup by setting scan depth to Integer.MAX_VALUE (which represents unlimited depth in Jetty 12.1) instead of the invalid negative -1 value.
- Applies the fix to both EE8 and EE11 configurations to ensure both support scanning deeply nested directories.
- Added e2e test (DevAppServerFullScanTest) that verifies the server boots without exceptions and successfully reloads when a nested resource file (> 3 levels deep) changes.
- Verified that on the original code, the EE8 server crashes on startup, and the EE11 server fails to trigger reloads for changes nested deeper than 3 directory levels.
@ludoch ludoch force-pushed the fix-jetty-scan-depth branch from da548d7 to 5d27b59 Compare June 10, 2026 09:36
@ludoch ludoch requested a review from maigovannon June 10, 2026 12:53
@copybara-service copybara-service Bot merged commit 12d8c95 into main Jun 10, 2026
17 checks passed
@copybara-service copybara-service Bot deleted the fix-jetty-scan-depth branch June 10, 2026 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant