JAVA_QUERIES had no @definition.record capture, unlike its class_declaration/interface_declaration/enum_declaration siblings and unlike CSHARP_QUERIES' own record_declaration pattern. A Java record's container node was never created, so its HAS_METHOD edges were dropped at persistence even though ownership resolution computed a valid ownerId for its methods. Downstream label mapping, the class-extractor config, the dispatch table, and ownership reconciliation already treated 'Record' correctly - this was purely a missing structure-phase capture.
12 lines
179 B
Java
12 lines
179 B
Java
package probe;
|
|
|
|
public record Point(int x, int y) {
|
|
public int sum() {
|
|
return x + y;
|
|
}
|
|
|
|
public int scaled(int factor) {
|
|
return sum() * factor;
|
|
}
|
|
}
|