Skip to content

Commit

Permalink
[jdk17] Apply jdk 17 to allowed jdk versions
Browse files Browse the repository at this point in the history
  • Loading branch information
hazendaz authored and slachiewicz committed Jul 27, 2021
1 parent e46fc1f commit e19a026
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ public class EnforceBytecodeVersion
// Java 16
JDK_TO_MAJOR_VERSION_NUMBER_MAPPING.put( "16", 60 );
JDK_TO_MAJOR_VERSION_NUMBER_MAPPING.put( "1.16", 60 );

// Java 17
JDK_TO_MAJOR_VERSION_NUMBER_MAPPING.put( "17", 61 );
JDK_TO_MAJOR_VERSION_NUMBER_MAPPING.put( "1.17", 61 );
}

static String renderVersion( int major, int minor )
Expand Down Expand Up @@ -234,7 +238,7 @@ private void computeParameters()
if ( needle == null )
{
throw new IllegalArgumentException( "Unknown JDK version given. Should be something like " +
"\"1.7\", \"8\", \"11\", \"12\", \"13\", \"14\", \"15\", \"16\"" );
"\"1.7\", \"8\", \"11\", \"12\", \"13\", \"14\", \"15\", \"16\", \"17\"" );
}
maxJavaMajorVersionNumber = needle;
if ( needle < 53 )
Expand Down

0 comments on commit e19a026

Please sign in to comment.