-
Notifications
You must be signed in to change notification settings - Fork 5
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
Adopt Class File API (preview feature Java 22) #165
Comments
The issue is that preview features require running with The bad news is that if you introduce Yet, there is some good news to actually start adopting the Class File API before its GA, but it requires introducing a dependency: https://github.com/Glavo/classfile, with this dependency is possible to use the Class File API even in Java 17, so one idea should be to actually introduce the dependency in |
I agree that it should not be added as long as it's a preview feature, for the reasons you mention. Currently upgrading ASM is sufficient to support the latest Java version to read the module descriptor, so there's no real rush to implement this. |
Proposed to be targeted in Java 24: JEP 484: Class-File API, once this is integrated it can be added to plexus-languages. |
See https://bugs.openjdk.org/browse/JDK-8308754 , which means that as of that version this should be the preferred way to parse class files over ASM, i.e. introduce a
src/main/java22
with the required code.The text was updated successfully, but these errors were encountered: