Skip to content

Conversation

hensan64
Copy link

@hensan64 hensan64 commented Jun 2, 2025

Fixes #4699

Henrik Sandström I added 2 commits June 2, 2025 10:48
(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>

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>

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>

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>

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());

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.

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?

@jlerbsc
Copy link
Collaborator

jlerbsc commented Jun 3, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix the enums so that javaparser will be compilation compatible with JDK24?
3 participants