Repository navigation
Conversation
63f3fd4 to
6522b29
Compare
6522b29 to
678b2ec
Compare
678b2ec to
8da4fa9
Compare
8da4fa9 to
8298f68
Compare
8298f68 to
1f1295b
Compare
1f1295b to
06b06d8
Compare
06b06d8 to
a16cbb0
Compare
8a0fee0 to
fe690b4
Compare
fe690b4 to
c4192fa
Compare
c4192fa to
be84f82
Compare
be84f82 to
25d3060
Compare
25d3060 to
a28a9c7
Compare
83c98cb to
c0a380b
Compare
c0a380b to
788213a
Compare
788213a to
cb0bfe7
Compare
This comment has been minimized.
This comment has been minimized.
cb0bfe7 to
261bd6b
Compare
CI failed: The Ruling Update and Notify job failed because ruling QA was cancelled upstream, so no actual_* artifacts were downloaded. The log does not explain the cancellation, and the finding is not attributed to this PR (related_to_pr=unclear).OverviewThe Ruling Update and Notify job failed because ruling QA was cancelled upstream, so no actual_* artifacts were downloaded. The log does not explain the cancellation, and the finding is not attributed to this PR (related_to_pr=unclear). FailuresRuling Update and Notify failed: no actual_* artifacts downloaded after upstream ruling QA was cancelled (cause unclear, not attributed to PR)
Summary
Code Review ✅ Approved 🟡 Medium risk 13 closed / 13 findingsDeriving unused-import and self-assignment warnings changes SemSitter analysis diagnostics, which could alter rule findings for Java files. Derives UNUSED_IMPORT and ASSIGNMENT_HAS_NO_EFFECT compiler warnings from the translated tree so checks like S1128 see the same warnings ECJ reports. Seven issues were resolved this session, including static on-demand imports now accepting inherited members, which matches ECJ on the InheritedStaticImports sample.
✅ 13 closed✅ Bug: Supported warning kinds only show up when a warning was found
✅ Performance: isInScope parent walk is recomputed for every import × identifier
✅ Bug: On-demand import is counted as used by types from its subpackages
✅ Edge Case: Javadoc reference wrapped onto the next line is read as
|
| Auto-apply | Compact |
|
|
Was this helpful? React with 👍 / 👎 | Gitar
|




Part 13 of 17 of JAVA-7392. Ticket: JAVA-7403.
Intent
Checks such as S1128 read the compiler warnings of the compilation unit. ECJ computes them, SemSitter does not, so
CompilerWarningsderives them from the translated tree: unused imports and assignments without effect.From
Warnings.expected.txt, identical to what ECJ reports:ReplayTest.same_warnings_as_ecjcompares the derived warnings with ECJ on every compiling sample. Cast and catch warnings come in the next PR.Test plan
same_warnings_as_ecjon the replay samples,JWarningTest,SemSitterParityTest