Skip to content

Java field declarations do not emit type-reference edges #1484

Closed

Description

@oleksii-tumanov

Context

The final graph from per-file extraction cache entries (v8 ,0.8.49). Java field types are not emitted as references so composition and injected dependencies are missing.
Parameter and return types already work (C# fields are handled).

Reproducer

class PaymentGateway {}

class CheckoutService {
    PaymentGateway gateway;
}

Cache result

Relevant edges from graphify-out/cache/ast/v0.8.49/<content-hash>.json:

[
  {"source": "fieldreference_java", "target": "fieldreference_paymentgateway", "relation": "contains"},
  {"source": "fieldreference_java", "target": "fieldreference_checkoutservice", "relation": "contains"}
]

Both classes are extracted, but there is no references edge between them.

Expected

Emit references from CheckoutService to PaymentGateway with context=field and confidence=EXTRACTED.

Activity

  1. safishamsi commented on Jun 27, 2026

    @safishamsi
    Member

    Fixed in 0.8.50 (PR #1485, thanks @oleksii-tumanov). Java field declarations now emit references edges for their type (incl. the generic_arg element of List<T>), with primitives skipped.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions