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
Hi @boris-petrov Thank you very much for reporting this issue. The code you provided is written with features specifically introduced in java 21 and it seems that Java parser has support for java up to 18language levels. Unfortunately we cannot resolve this issue at this moment, unless javaparser adds the support for java 21. Let's keep this issue open so we can think more on this and find a solution for this in near future.
That would be great if you report the issue on their GitHub.
If it helps you can provide the code snippet below as a unit test that the code compiles successfully with java 21 and fails with java parser
As for my case - I'll try to rewrite this code to not use Java 21 features (I don't have that many cases) and then revert it once NullAwayAnnotator has done its job.
Describe the bug
That's probably not an issue with this project but rather with
javaparser
but I promised to write here @nimakarimipour. 😄I get the following exception:
The parsing error is on
(
but I managed to find the culprit! The code in question is as follows:Let me know if I should report the issue to the other project or you will. Thanks!
To Reproduce
See the Java code above.
Expected behavior
No exception.
Stack trace
See above.
OS (please complete the following information):
The text was updated successfully, but these errors were encountered: