Describe the bug
When analyzing Java projects JavaParser's ReflectionTypeSolver, a StackOverflowError is thrown.
To Reproduce
Steps to reproduce the behavior:
- Clone fastjson2
- Run
java -jar build/libs/codeanalyzer-2.3.4.jar --input /path/to/fastjson2
- Observe
StackOverflowError during interface resolution
Expected behavior
Analysis level 1 should complete or gracefully proceed without causing a StackOverflowError.
Logs
Exception in thread "main" java.lang.StackOverflowError
at com.github.javaparser.symbolsolver.reflectionmodel.ReflectionFactory.typeUsageFor(ReflectionFactory.java:73)
at com.github.javaparser.symbolsolver.reflectionmodel.ReflectionClassAdapter.lambda$getInterfaces$1(ReflectionClassAdapter.java:79)
... (recurses into getAncestors and getAllFields repeatedly)
Additional context
N/A
Describe the bug
When analyzing Java projects JavaParser's
ReflectionTypeSolver, aStackOverflowErroris thrown.To Reproduce
Steps to reproduce the behavior:
java -jar build/libs/codeanalyzer-2.3.4.jar --input /path/to/fastjson2StackOverflowErrorduring interface resolutionExpected behavior
Analysis level 1 should complete or gracefully proceed without causing a
StackOverflowError.Logs
Additional context
N/A