Repository navigation
Move the missing-warnings ITs to unit tests and assert the ECJ failure reason - #553
Merged
Merged
Conversation
…failure reason The unit test pins the [module] warning and its column for both javac paths (forced javac and javax.tools), which is what the two ITs asserted. simple-eclipse-compiler-fail only checked that the build failed; it now asserts the syntax error in MyClass.java.
slachiewicz
marked this pull request as ready for review
November 22, 2026 16:58
slachiewicz
commented
Nov 22, 2026
slachiewicz
left a comment
Member
Author
There was a problem hiding this comment.
LGTM. Both missing-warning assertions survive with the exact column (25 for forced javac, 32 for javax.tools), file and line, and the ECJ IT now asserts the syntax error and that the test sources were never compiled instead of accepting any failure.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
missing-warningsandmissing-warnings-in-processonly grepped a build log for one javac warning;JavacCompilerTest.testMissingModuleIsReportedAsWarningasserts the same warning text, line and column (25 for forced javac, 32 for javax.tools) without installing and forking a Maven build. Reverting the column fix inJavacCompileror the lint category restore inJavaxToolsCompilerfails it.simple-eclipse-compiler-failpassed on any failure; it now asserts theMyClass.java:[23,5]syntax error and that the test sources were never compiled.