Repository navigation
resolver: Java built-ins on the untyped-receiver fallback + TS module-property receiver (Part of #4991) - #5030
Merged
Merged
Conversation
…-receiver fallback (Part of #4991) Co-Authored-By: Claude Opus 5.5 <[email protected]>
… lists (Part of #4991) Co-Authored-By: Claude Opus 5.5 <[email protected]>
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 13, 2026 13:45
squid-protocol
enabled auto-merge (squash)
October 13, 2026 13:45
Owner
Author
|
No description provided. |
Contributor
3 of 8 tasks
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.
Part of #4991.
What
The untyped-receiver fallback in
_resolve_one(gitgalaxy/core/call_resolver.py) had built-in method lists only for TS/JS (#4990). This PR:_BUILTIN_INSTANCE_METHODS["java"](Object/String/StringBuilder/Collection/List/Set/Map/Queue/Deque/Iterator/Optional/Stream/boxed numbers) and_BUILTIN_NAMESPACES["java"](Arrays,Collections,Objects,Math,String, boxed types,System,List/Set/Map, ...).handleMapResult -> util.ts has@696(zod@2bf7b0630d53): diagnosed withexplain_call.pyas the import-stem step, not the fallback:util.propertyKeyTypes.has(k)has headutil(an imported module) and the step treated the receiver as the module itself. A dotted receiver whose leaf is not a module/dir, calling a built-in name, now falls through to the fallback (util.has(x)on the module itself still links).Measured (Level 2,
call_graph_resolution.py)Baselines regenerated. The remaining 100 Java externals are reflection/annotation/Writer names (
getAnnotation,getType,write,getActualTypeArguments), deliberately not listed:getType/writeare common repo names.Class table
d.get()still linksfile(test pins it); pyan cannot flag external, no reference -> left openGolden
Both fixtures re-blessed via
crucible_check.py --update --yes(13 files each: gpu_json, graph_sqlite, llm_brief, network_macro, fan_in/fan_out/import_edges/pagerank, blast radius, fingerprint/popularity/centroid/z-score). Attribution: import-edge/fan changes only in java (+ groovy fan); other languages move only through PageRank/coordinate ripple. (scope_check --expect javaalso lists unrelated shadow-logic counts that are not in the committed diff.) Overlaps with golden-moving #5027/#5029: take main and re-bless.Gates
pr_gates --fast5/5,--ratchets7/7,test_call_resolver.py+ gate tests pass,call_graph_resolution java|typescript --ciOK.Test change: the #3837
entrySetfixtures were renamedvisitMembers(entrySetis now a Map built-in).🤖 Generated with Claude Code