mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8311172: Classfile.PREVIEW_MINOR_VERSION doesn't match that read from class files
Reviewed-by: asotona
This commit is contained in:
parent
afcf8e4751
commit
3fb9d117e3
2 changed files with 65 additions and 1 deletions
|
@ -690,7 +690,12 @@ public sealed interface Classfile
|
|||
int JAVA_21_VERSION = 65;
|
||||
int JAVA_22_VERSION = 66;
|
||||
|
||||
int PREVIEW_MINOR_VERSION = -1;
|
||||
/**
|
||||
* A minor version number indicating a class uses preview features
|
||||
* of a Java SE version since 12, for major versions {@value
|
||||
* #JAVA_12_VERSION} and above.
|
||||
*/
|
||||
int PREVIEW_MINOR_VERSION = 65535;
|
||||
|
||||
static int latestMajorVersion() {
|
||||
return JAVA_22_VERSION;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue