Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
hensan64 wants to merge3 commits intojavaparser:master
base:master
Choose a base branch
Loading
fromhensan64:master

Conversation

hensan64
Copy link

Fixes#4699

Henrik Sandström I added2 commitsJune 2, 2025 10:48
(cherry picked from commit c8e0872b26cdc6a61d6d520defe91c06115a252f)
* This validator validates according to Java21 syntax rules.
* This validator validates according to Java24 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

* This validator validates according to Java21 syntax rules.
* This validator validates according to Java23 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

* This validator validates according to Java21 syntax rules.
* This validator validates according to Java22 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

* This validator validates according to Java21 syntax rules.
* This validator validates according to Java23 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(newJava24Validator(),newJava24PostProcessor());

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(newJava24Validator(),newJava24PostProcessor());

/**
* 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

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 freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
1 more reviewer

@martinaldrinmartinaldrinmartinaldrin requested changes

Reviewers whose approvals may not affect merge requirements
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Fix the enums so that javaparser will be compilation compatible with JDK24?
3 participants
@hensan64@jlerbsc@martinaldrin

[8]ページ先頭

©2009-2025 Movatter.jp