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
The issue doesn't happen when I use a fully qualified call (B.d()) and don't use import static.
Same thing happens with an asterisk import.
Note
For the curious, the open source library where I discovered this problem is JUnit 5. Class A corresponds to Filter, class B to CompositeFilter, method c to composeFilters and method d to alwaysIncluded.
Hi 👋 I encountered a
StackOverflowErrorwhen trying to use javaparser on a popular open source library.I managed to reproduce the issue in a minimal example.
Note
I detected the problem javaparser
3.25.9, but I was able to reproduce it on older versions.The code I use for testing:
Main.java
A.java
B.java
The issue doesn't happen when I use a fully qualified call (
B.d()) and don't useimport static.Same thing happens with an asterisk import.
Note
For the curious, the open source library where I discovered this problem is JUnit 5. Class
Acorresponds to Filter, classBto CompositeFilter, methodctocomposeFiltersand methoddtoalwaysIncluded.