-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add structure support for Java 22, 23 and 24 (no features) #4769
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
(cherry picked from commit c8e0872b26cdc6a61d6d520defe91c06115a252f)
@@ -20,7 +20,7 @@ | |||
package com.github.javaparser.ast.validator.language_level_validations; | |||
|
|||
/** | |||
* This validator validates according to Java 21 syntax rules. | |||
* This validator validates according to Java 24 syntax rules. | |||
* | |||
* @see <a href="https://openjdk.java.net/projects/jdk/21/">https://openjdk.java.net/projects/jdk/21/</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
correct link
@@ -20,7 +20,7 @@ | |||
package com.github.javaparser.ast.validator.language_level_validations; | |||
|
|||
/** | |||
* This validator validates according to Java 21 syntax rules. | |||
* This validator validates according to Java 23 syntax rules. | |||
* | |||
* @see <a href="https://openjdk.java.net/projects/jdk/21/">https://openjdk.java.net/projects/jdk/21/</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
correct link
@@ -20,7 +20,7 @@ | |||
package com.github.javaparser.ast.validator.language_level_validations; | |||
|
|||
/** | |||
* This validator validates according to Java 21 syntax rules. | |||
* This validator validates according to Java 22 syntax rules. | |||
* | |||
* @see <a href="https://openjdk.java.net/projects/jdk/21/">https://openjdk.java.net/projects/jdk/21/</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
correct link
@@ -20,7 +20,7 @@ | |||
package com.github.javaparser.ast.validator.language_level_validations; | |||
|
|||
/** | |||
* This validator validates according to Java 21 syntax rules. | |||
* This validator validates according to Java 23 syntax rules. | |||
* | |||
* @see <a href="https://openjdk.java.net/projects/jdk/21/">https://openjdk.java.net/projects/jdk/21/</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
correct link
/** | ||
* Java 24 | ||
*/ | ||
JAVA_24(new Java24Validator(), new Java24PostProcessor()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could we prepare for JAVA_25 directly?
/** | ||
* Java 24 | ||
*/ | ||
JAVA_24(new Java24Validator(), new Java24PostProcessor()); | ||
|
||
/** | ||
* Does no post processing or validation. Only for people wanting the fastest parsing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe also time to update
public static LanguageLevel POPULAR = JAVA_11; -> 17?
public static LanguageLevel CURRENT = JAVA_18; -> 21=
public static LanguageLevel BLEEDING_EDGE = JAVA_21; -> 24?
Thank you for this proposition, but this PR will not be merged in this state because JP does not support all the features of the various java versions. If this PR had been subdivided into several PRs (one per version of java) they would have been easier to integrate as soon as the different features specific to each version had been developed. |
Fixes #4699