Skip to content

[Bug]: Java: calls to inherited methods get no calls edge (this.m(), super.m(), typed receivers) #3931

Closed

Description

@janwaleed09

Pre-flight checks

  • I have checked the Troubleshooting section in the README

What happened?

_resolve_java_member_calls looks a member call up only on the receiver's declared type. When the method is declared on a superclass, the call gets no calls edge: this.start(), super.close() and worker.start() below all stay unlinked. Expected: an edge to the superclass method, the way Java resolves it (JLS 15.12.2.1 includes inherited members in the search; for super, JLS 15.12.1 searches the direct superclass).

Steps to reproduce

Base.java:    class Base { void start() {} void close() {} }
Worker.java:  class Worker extends Base {
                  void viaThis() { this.start(); }
                  void close() { super.close(); }
              }
Service.java: class Service {
                  Worker worker;
                  void viaField() { worker.start(); }
              }
graphify extract . --code-only

Error output or graph output

Only Worker --inherits--> Base is emitted. No calls edge leaves .viaThis(), Worker.close() or .viaField().
On real code this leaves 1,693 calls edges missing in spring-amqp (679 Java files) and 2,776 in Debezium (3,101 files).

Graphify version

v8 @ 1cd9a36 (0.9.72, from source)

Operating System

macOS

Python Version

3.12

Installation Method

uv tool install (recommended)

Additional Environment Details

No response

Additional context

No response

Activity

  1. added
    bug
    on Sep 29, 2026
  2. github-actions commented on Sep 29, 2026

    @github-actions

    Thanks for opening this issue, @janwaleed09. 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.

  3. janwaleed09 commented on Sep 29, 2026

    @janwaleed09
    ContributorAuthor

    on it: fix being pushed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions