You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
java args regex: type-use annotation between modifier and return type not matched (sibling gap to #1486) #2091
bugUnintended behavior or logic failure in the enginecore-engineModifications to the central physics and parsing enginethreat: false-negativeAccuracy tuning: Engine missed a bypass or vulnerability
#1486/PR #1489 fixed this exact shape (a JSR-308 type-use annotation like @Nullable sitting
between a modifier and the return type, e.g. protected @Nullable Foo bar(...)) for java's func_start rule, but the sibling args rule (LANGUAGE_DEFINITIONS["java"]["rules"]["args"],
Branch 1 "Standard Methods") shares the identical modifier-repetition-group shape and never got
the matching fix -- confirmed via direct regex inspection, not an audit-tool artifact.
6 real parameters. func_start matches this signature fine (already fixed by #1486). args
Branch 1 cannot match it at all -- @Nullable breaks the return-type token match, so the branch
fails and the whole args-alternation falls through to Branch 3 (lambdas/method refs), incidentally
matching an unrelated lambda three lines into the function's own body
((dataObjectBinder) -> dataObjectBinder.create(...)) and misattributing its 1-param count as
this function's real parameter count.
Confirmed via docs/self_scan/tri_comparison_ledger.json's java/function/args/agree[ctags,tree_sitter]_vs[gitgalaxy] shape (28 occurrences, all in Binder.java/AutoConfigurationImportSelector.java).
Fix (applied)
Widened args Branch 1's modifier-repetition group to include the same @[\w.]+(?:\([^)]*\))? annotation alternative func_start's equivalent group already has,
mirroring #1486/#1489's fix. Verified: all 28 ledger occurrences now measure the correct arg
count, matching ctags/tree-sitter; tri_comparison_gatherer.gather_language("java") shows zero
remaining args mismatches anywhere in the corpus.
bugUnintended behavior or logic failure in the enginecore-engineModifications to the central physics and parsing enginethreat: false-negativeAccuracy tuning: Engine missed a bypass or vulnerability
Activity
fix(java): bodyless abstract-method drop + args annotation gap, tri-c…
squid-protocol commentedon Aug 22, 2026
Fixed via PR #2092.