-
Hello, I just wanted to ask which input Java source code versions are officially supported by the latest 3.0.4 release. It seems the Support for record declarations was seemingly added here: 139a701 Still, it seems record declarations do not get detected by the current version. The |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
Hello Andre, Indeed, we added support for matching Record declarations, but when the compiler options are set to Java 20, As a result, we decided to go back to the original configuration options, as we had some failing tests. A proper solution would be to somehow detect the Java version for each commit and setup dynamically the compiler options. |
Beta Was this translation helpful? Give feedback.
-
I have some good news about this issue. So, our idea is simple. |
Beta Was this translation helpful? Give feedback.
-
The issue has been fixed with the latest commit 15cada7 |
Beta Was this translation helpful? Give feedback.
-
@AM307 |
Beta Was this translation helpful? Give feedback.
Hello Andre,
Indeed, we added support for matching Record declarations, but when the compiler options are set to Java 20,
record
is considered a Java keyword.Therefore, if some older java code (i.e., before records were introduced in Java) contains a variable named
record
the Eclipse JDT parser will skip parsing this code (when set to Java 20 compatibility).
As a result, we decided to go back to the original configuration options, as we had some failing tests.
A proper solution would be to somehow detect the Java version for each commit and setup dynamically the compiler options.
However, this is not so easy. If you have any solution to suggest, I would be glad to hear it and implement it.