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
Is your feature request related to a problem? Please describe. codeanalyzer-java fails to generate a parse tree, symbol table, or call graph when analyzing Java code that includes record declarations. This issue affects the analysis of modern Java applications that make use of record types, introduced in Java 14 and finalized in Java 16, for immutable data structures. The missing support leads to incomplete analysis results and may cause downstream issues when performing dependency analysis or refactoring tasks.
Describe the solution you'd like
Support for record declarations should be added to codeanalyzer-java. Specifically, the tool should:
Properly parse record declarations into the internal representation.
Consider creating a new entity for the record type.
Ensure that record fields are properly registered in the symbol table.
Integrate record types with existing analyses such as type resolution and call site detection.
Describe alternatives you've considered
None. Record classes were ignored.
Additional context
Example code that currently fails to generate a parse tree or call graph:
Is your feature request related to a problem? Please describe.
codeanalyzer-java
fails to generate a parse tree, symbol table, or call graph when analyzing Java code that includesrecord
declarations. This issue affects the analysis of modern Java applications that make use ofrecord
types, introduced in Java 14 and finalized in Java 16, for immutable data structures. The missing support leads to incomplete analysis results and may cause downstream issues when performing dependency analysis or refactoring tasks.Describe the solution you'd like
Support for
record
declarations should be added tocodeanalyzer-java
. Specifically, the tool should:record
declarations into the internal representation.record
fields are properly registered in the symbol table.record
types with existing analyses such as type resolution and call site detection.Describe alternatives you've considered
None. Record classes were ignored.
Additional context
Person
record should appear in the symbol table.greet
method should be included in the call graph.The text was updated successfully, but these errors were encountered: