Repository navigation
Conversation
bbb6daa to
eefc450
Compare
eefc450 to
bb822e7
Compare
bb822e7 to
2a830b6
Compare
5498a07 to
282b42b
Compare
282b42b to
d13a3f2
Compare
d13a3f2 to
a84e7b0
Compare
a84e7b0 to
a0d49f6
Compare
a0d49f6 to
45c559b
Compare
45c559b to
523956b
Compare
523956b to
e10d981
Compare
e10d981 to
b9cce65
Compare
b9cce65 to
a0b8fe6
Compare
a0b8fe6 to
15946fe
Compare
15946fe to
37b29c7
Compare
37b29c7 to
6becbe9
Compare
6becbe9 to
a00d670
Compare
This comment has been minimized.
This comment has been minimized.
a00d670 to
6d30c73
Compare
CI failed: The ruling-update job failed because the upstream ruling-qa job was cancelled and uploaded no actual artifacts, so the update action found nothing to download. The log does not show why ruling-qa was cancelled, and the finding is not attributed to this PR's warning-derivation or golden changes.OverviewThe ruling-update job failed because the upstream ruling-qa job was cancelled and uploaded no actual artifacts, so the update action found nothing to download. The log does not show why ruling-qa was cancelled, and the finding is not attributed to this PR's warning-derivation or golden changes. FailuresRuling-update job fails on missing actual artifacts after upstream ruling-qa cancellation (unrelated to PR)
Summary
Code Review ✅ Approved 🟡 Medium risk 8 closed / 8 findingsAdding redundant-cast and masked-catch derivation changes Java diagnostics; imperfect type or exception analysis could produce misleading warnings. Derives REDUNDANT_CAST and MASKED_CATCH warnings from the compiler warnings so the SemSitter frontend matches ECJ for redundant casts and unreachable catch blocks. Resolved issues include inherited-method overload misses, widening casts into reference targets, intersection cast bounds, and the unnamed variable ✅ 8 closed✅ Bug: Overload check misses inherited methods, so casts get falsely flagged
✅ Quality: assignedTo test passes for argument casts only because ECJ symbols are used
✅ Bug: Widening primitive cast into a reference target is flagged as redundant
✅ Bug: Intersection casts flagged redundant using only the first bound
✅ Edge Case: Unnamed variable
|
| Auto-apply | Compact |
|
|
Was this helpful? React with 👍 / 👎 | Gitar
|




Part 14 of 17 of JAVA-7392. Ticket: JAVA-7404.
Intent
Add the two remaining warning kinds the checks read: redundant casts and unreachable catch blocks.
From
Warnings.expected.txtandCastContexts.expected.txt, identical to ECJ:Test plan
CastChecksTest,ThrownTypesTestsame_warnings_as_ecjnow compares all four kinds