Repository navigation
Call resolver (java): bodyless interface/abstract methods are never call targets (#3836) - #4133
Merged
Merged
Conversation
…res, never targets (#3836) Detector: a java method ending in ';' (interface / abstract) gets def_shape 'signature' (native excluded). Resolver: signatures stay non-targets (#3757) but are kept per bucket so (a) a lineage walk that reaches a class only DECLARING the name stops as an ambiguous 'receiver' dispatch instead of jumping to a namesake class in another file, and (b) a declaring interface counts as a candidate class for an untyped receiver. gson vs scip-java: confident unmapped 97 -> 65 (the 32 bodyless targets), confident unconfirmed +1, every gated metric unchanged. TypeScript and Python unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
# Conflicts: # tests/call_graph_resolution_java_baseline.json
…all targets) Drift is the scan-DB snapshot (fan in/out, import edges, PageRank) on the Java samples whose calls used to resolve to interface/abstract signatures (springboot, gradle, spock), plus the PageRank/network-macro ripple across the whole graph and the springboot repository fingerprint/centroid distance that the import edges feed. Blessed per golden-bless-env-contract: galaxy_venv (full) and galaxy_zero_venv (PyYAML only), with a galaxyscope PATH shim so the scan ran this worktree's engine. Co-Authored-By: Claude Opus 5.5 <[email protected]>
squid-protocol
marked this pull request as ready for review
October 2, 2026 17:16
# Conflicts: # tests/call_graph_resolution_java_baseline.json
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.
Fixes #3836
Root cause:
def_shape = signature(#3757) was TS/JS-only, so Java's;-terminated interface andabstractmethods were indexed as targets. Simply dropping them (the TS approach) exposed a second problem: a barereadField()in abstractAdapterwalked on to an unrelatedAdapterclass in another module (proto/), andiface.m()became a confident link to whichever implementation happened to be visible.Fix: the detector marks Java bodyless methods
signature(but notnativeones). The resolver still never targets them, but keeps them on the bucket. As a result:receiver(a dispatch);gson vs scip-java: confident unmapped is 97 -> 65 (all 32 bodyless targets gone; triage
unmapped_dstis 42 -> 10, and the 10 left are records, a different pattern). Confident unconfirmed is +1. Precision 92.7%, recall 41.0% and resolution recall 43.6% are unchanged. TypeScript (zod) and Python (pyan3 2.8.1) are byte-identical. Java baseline regenerated (confident_unmapped).Left out on purpose: C# and Kotlin have the same shape, but no compiler reference measures them yet. The guard test pins C# as unchanged.
Draft / still to do:
tests/tools/pr_gates.pywas not run (the budget ran out). Unit tests pass: test_call_resolver (63) and the new detector test.🤖 Generated with Claude Code