You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This directory contains an implementation of the module-info parser using the Java Class File API, which was introduced as a preview feature in Java 22 (JEP 457).
3
+
This directory contains an implementation of the module-info parser using the Java Class File API, which was finalized in Java 24 (JEP 484).
4
4
5
5
## Background
6
6
7
7
The Class File API provides a native Java API for parsing and generating class files, eliminating the need for external libraries like ASM for this purpose.
-**Java 23** (September 2024): Second Preview (JEP 466)
13
+
-**Java 24** (March 2025): Finalized (JEP 484)
14
14
15
15
## Implementation
16
16
@@ -21,17 +21,15 @@ This implementation uses:
21
21
22
22
## Building
23
23
24
-
When building with Java 22 or 23, the `--enable-preview` flag is automatically added by the Maven compiler plugin configuration.
24
+
When building with Java 24+, this code is automatically compiled and included in the multi-release JAR.
25
25
26
-
When building with Java 24+, the preview flag should not be needed as the API should be finalized.
27
-
28
-
When building with Java 17 or earlier, this code is not compiled, and the Java 9 implementation (using `java.lang.module.ModuleDescriptor`) is used instead.
26
+
When building with Java 23 or earlier, this code is not compiled, and the Java 9 implementation (using `java.lang.module.ModuleDescriptor`) is used instead.
29
27
30
28
## Multi-Release JAR
31
29
32
30
This implementation is part of a multi-release JAR structure:
0 commit comments