Note that additional class file format version constants will be added to model future releases of the Java Virtual Machine Specification.
API Note
The complete version used in a class file includes a major version and a minor version; this enum only models the major version. A Java virtual machine implementation is required to support a range of major versions; see the corresponding edition of the The Java Virtual Machine Specification for details.
System property java.class.version , java.compiler/javax.lang.model.SourceVersion
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| public static final ClassFileFormatVersion | RELEASE_0
The original version. |
| public static final ClassFileFormatVersion | RELEASE_1
The version recognized by the Java Platform 1.1. |
| public static final ClassFileFormatVersion | RELEASE_10
The version introduced by the Java Platform, Standard Edition 10. |
| public static final ClassFileFormatVersion | RELEASE_11
The version introduced by the Java Platform, Standard Edition 11. |
| public static final ClassFileFormatVersion | RELEASE_12
The version introduced by the Java Platform, Standard Edition 12. |
| public static final ClassFileFormatVersion | RELEASE_13
The version introduced by the Java Platform, Standard Edition 13. |
| public static final ClassFileFormatVersion | RELEASE_14
The version introduced by the Java Platform, Standard Edition 14. |
| public static final ClassFileFormatVersion | RELEASE_15
The version introduced by the Java Platform, Standard Edition 15. |
| public static final ClassFileFormatVersion | RELEASE_16
The version introduced by the Java Platform, Standard Edition 16. |
| public static final ClassFileFormatVersion | RELEASE_17
The version introduced by the Java Platform, Standard Edition 17. |
| public static final ClassFileFormatVersion | RELEASE_18
The version introduced by the Java Platform, Standard Edition 18. |
| public static final ClassFileFormatVersion | RELEASE_19
The version introduced by the Java Platform, Standard Edition 19. |
| public static final ClassFileFormatVersion | RELEASE_2
The version introduced by the Java 2 Platform, Standard Edition, v 1.2. |
| public static final ClassFileFormatVersion | RELEASE_20
The version introduced by the Java Platform, Standard Edition 20. |
| public static final ClassFileFormatVersion | RELEASE_21
The version introduced by the Java Platform, Standard Edition 21. |
| public static final ClassFileFormatVersion | RELEASE_22
The version introduced by the Java Platform, Standard Edition 22. |
| public static final ClassFileFormatVersion | RELEASE_23
The version introduced by the Java Platform, Standard Edition 23. |
| public static final ClassFileFormatVersion | RELEASE_24
The version introduced by the Java Platform, Standard Edition 24. |
| public static final ClassFileFormatVersion | RELEASE_25
The version introduced by the Java Platform, Standard Edition 25. |
| public static final ClassFileFormatVersion | RELEASE_26
The version introduced by the Java Platform, Standard Edition 26. |
| public static final ClassFileFormatVersion | RELEASE_27
The version introduced by the Java Platform, Standard Edition 27. |
| public static final ClassFileFormatVersion | RELEASE_3
The version introduced by the Java 2 Platform, Standard Edition, v 1.3. |
| public static final ClassFileFormatVersion | RELEASE_4
The version introduced by the Java 2 Platform, Standard Edition, v 1.4. |
| public static final ClassFileFormatVersion | RELEASE_5
The version introduced by the Java 2 Platform, Standard Edition 5.0. |
| public static final ClassFileFormatVersion | RELEASE_6
The version introduced by the Java Platform, Standard Edition 6. |
| public static final ClassFileFormatVersion | RELEASE_7
The version introduced by the Java Platform, Standard Edition 7. |
| public static final ClassFileFormatVersion | RELEASE_8
The version introduced by the Java Platform, Standard Edition 8. |
| public static final ClassFileFormatVersion | RELEASE_9
The version introduced by the Java Platform, Standard Edition 9. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ClassFileFormatVersion | Returns: the latest class file format version whose major class file version matches the argumentthe major class file version as an integer major)Returns the latest class file format version whose major class file version matches the argument. |
| public static ClassFileFormatVersion | |
| public int | Returns: the major class file version as an integerReturns the major class file version as an integer. |
| public Runtime. | Returns: the least runtime version that supports this class file format version; otherwisenullReturns the least runtime version that supports this class
file format version; otherwise |
| public static ClassFileFormatVersion | |
| public static ClassFileFormatVersion | |
| public static ClassFileFormatVersion[] |
| major | back to summary |
|---|---|
| private final int major | |
| RELEASE_0 | back to summary |
|---|---|
| public static final ClassFileFormatVersion RELEASE_0 The original version. The format described in The Java Virtual Specification, First Edition. | |
| RELEASE_1 | back to summary |
|---|---|
| public static final ClassFileFormatVersion RELEASE_1 The version recognized by the Java Platform 1.1. API Note While | |
| RELEASE_10 | back to summary |
|---|---|
| public static final ClassFileFormatVersion RELEASE_10 The version introduced by the Java Platform, Standard Edition 10. | |
| RELEASE_11 | back to summary |
|---|---|
| public static final ClassFileFormatVersion RELEASE_11 The version introduced by the Java Platform, Standard Edition 11. | |
| RELEASE_12 | back to summary |
|---|---|
| public static final ClassFileFormatVersion RELEASE_12 The version introduced by the Java Platform, Standard Edition 12. | |
| RELEASE_13 | back to summary |
|---|---|
| public static final ClassFileFormatVersion RELEASE_13 The version introduced by the Java Platform, Standard Edition 13. | |
| RELEASE_14 | back to summary |
|---|---|
| public static final ClassFileFormatVersion RELEASE_14 The version introduced by the Java Platform, Standard Edition 14. | |
| RELEASE_15 | back to summary |
|---|---|
| public static final ClassFileFormatVersion RELEASE_15 The version introduced by the Java Platform, Standard Edition 15. | |
| RELEASE_16 | back to summary |
|---|---|
| public static final ClassFileFormatVersion RELEASE_16 The version introduced by the Java Platform, Standard Edition 16. | |
| RELEASE_17 | back to summary |
|---|---|
| public static final ClassFileFormatVersion RELEASE_17 The version introduced by the Java Platform, Standard Edition 17. Additions in this release include sealed classes and restoration of always-strict floating-point semantics. | |
| RELEASE_18 | back to summary |
|---|---|
| public static final ClassFileFormatVersion RELEASE_18 The version introduced by the Java Platform, Standard Edition 18. | |
| RELEASE_19 | back to summary |
|---|---|
| public static final ClassFileFormatVersion RELEASE_19 The version introduced by the Java Platform, Standard Edition 19. | |
| RELEASE_2 | back to summary |
|---|---|
| public static final ClassFileFormatVersion RELEASE_2 The version introduced by the Java 2 Platform, Standard Edition,
v 1.2.
The format described in The Java Virtual Machine
Specification, Second Edition, which includes the | |
| RELEASE_20 | back to summary |
|---|---|
| public static final ClassFileFormatVersion RELEASE_20 The version introduced by the Java Platform, Standard Edition 20. | |
| RELEASE_21 | back to summary |
|---|---|
| public static final ClassFileFormatVersion RELEASE_21 The version introduced by the Java Platform, Standard Edition 21.
| |
| RELEASE_22 | back to summary |
|---|---|
| public static final ClassFileFormatVersion RELEASE_22 The version introduced by the Java Platform, Standard Edition 22.
| |
| RELEASE_23 | back to summary |
|---|---|
| public static final ClassFileFormatVersion RELEASE_23 The version introduced by the Java Platform, Standard Edition 23.
| |
| RELEASE_24 | back to summary |
|---|---|
| public static final ClassFileFormatVersion RELEASE_24 The version introduced by the Java Platform, Standard Edition 24.
| |
| RELEASE_25 | back to summary |
|---|---|
| public static final ClassFileFormatVersion RELEASE_25 The version introduced by the Java Platform, Standard Edition 25.
| |
| RELEASE_26 | back to summary |
|---|---|
| public static final ClassFileFormatVersion RELEASE_26 The version introduced by the Java Platform, Standard Edition 26.
| |
| RELEASE_27 | back to summary |
|---|---|
| public static final ClassFileFormatVersion RELEASE_27 The version introduced by the Java Platform, Standard Edition 27.
| |
| RELEASE_3 | back to summary |
|---|---|
| public static final ClassFileFormatVersion RELEASE_3 The version introduced by the Java 2 Platform, Standard Edition, v 1.3. | |
| RELEASE_4 | back to summary |
|---|---|
| public static final ClassFileFormatVersion RELEASE_4 The version introduced by the Java 2 Platform, Standard Edition, v 1.4. | |
| RELEASE_5 | back to summary |
|---|---|
| public static final ClassFileFormatVersion RELEASE_5 The version introduced by the Java 2 Platform, Standard Edition 5.0. | |
| RELEASE_6 | back to summary |
|---|---|
| public static final ClassFileFormatVersion RELEASE_6 The version introduced by the Java Platform, Standard Edition 6. | |
| RELEASE_7 | back to summary |
|---|---|
| public static final ClassFileFormatVersion RELEASE_7 The version introduced by the Java Platform, Standard Edition 7. | |
| RELEASE_8 | back to summary |
|---|---|
| public static final ClassFileFormatVersion RELEASE_8 The version introduced by the Java Platform, Standard Edition 8. | |
| RELEASE_9 | back to summary |
|---|---|
| public static final ClassFileFormatVersion RELEASE_9 The version introduced by the Java Platform, Standard Edition 9. | |
| ClassFileFormatVersion | back to summary |
|---|---|
| private ClassFileFormatVersion(int major) | |
| fromMajor | back to summary |
|---|---|
| public static ClassFileFormatVersion fromMajor(int major) Returns the latest class file format version whose major class file version matches the argument.
| |
| latest | back to summary |
|---|---|
| public static ClassFileFormatVersion latest() Returns the latest class file format version.
| |
| major | back to summary |
|---|---|
| public int major() Returns the major class file version as an integer.
| |
| runtimeVersion | back to summary |
|---|---|
| public Runtime. Returns the least runtime version that supports this class
file format version; otherwise | |
| valueOf | back to summary |
|---|---|
| public static ClassFileFormatVersion valueOf(String name) | |
| valueOf | back to summary |
|---|---|
| public static ClassFileFormatVersion valueOf(Runtime. Returns the latest class file format version that is usable
under the runtime version argument. If the runtime version's
feature is greater than
the feature of the runtime
version of the latest class file format
version, an Because the class file format versions of the Java platform have so far followed a linear progression, only the feature component of a runtime version is queried to determine the mapping to a class file format version. If that linearity changes in the future, other components of the runtime version may influence the result. API Note An expression to convert from a string value, for example
ClassFileFormatVersion.valueOf(Runtime.Version.parse("17"))
| |
| values | back to summary |
|---|---|
| public static ClassFileFormatVersion[] values() | |