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
[Bug]: Java: _bar() and bar() (or getId/getID) share one node id, so one method vanishes and its calls go to the other #5151
I have checked the Troubleshooting section in the README
What happened?
In Java, two members of one class whose names differ only by a leading _ (_bar() / bar()), or only by case (getId() / getID(), HashCode() constructor / hashCode()), get one node id. One method disappears from the graph, and its calls are credited to the other method.
This is the same bug fixed for Solidity in #5058. Python and C# already keep such twins apart (#3302, #4415): the one public name keeps its id and the others get a salted id (_underscore_salted_nid).
How often it happens on real repos (answer key: a separate tree-sitter-java scan counting declarations per class):
repo
colliding groups
methods with no node on v8
calls on the wrong method on v8
jsoup
1
1
3
commons-lang
5
5
5
jackson-core
35
35
223
jackson-databind
101
101
363
guava
18
18
18
spring-framework
5
6
7
Jackson uses the _name style for internal helpers, so it is hit hardest.
Activity
github-actions commentedon Nov 11, 2026
Thanks for opening this issue, @rohit-jsfreaky. A maintainer will take a look soon.
If you would like to discuss it in real time, come say hi on our Discord server. For longer-form questions and ideas there is also GitHub Discussions.
To help us triage, please make sure the report includes what you expected, what actually happened, and the steps (and a small sample) to reproduce it.
chore(cache): combine the schema-44 comment for the 0.9.107 batch
safishamsi commentedon Nov 12, 2026
Fixed by #5152 (bd720f1), released in graphify 0.9.107. Thanks @rohit-jsfreaky.
fix(dart): keep `_name`/`name` function twins apart in node ids
fix(kotlin): keep `_name`/`name` and case-only method twins apart in …
fix(swift): keep `_name`/`name` and case-only method twins apart in n…
fix(cpp): keep `_name`/`name_`, case-only and ctor/dtor member twins …
fix(ruby): keep `_name`/`name` method twins apart in node ids
fix(scala): keep `_name`/`name`, case-only and getter/setter twins ap…
fix(elixir): keep `__name__`/`name`, `get`/`get!` and case-only def t…
fix(objc): give each colliding interface/implementation method its ow…