src/java.base/share/classes/jdk/internal/org/objectweb/asm/ClassReader.java
changeset 55382 30b1b7b4dd86
parent 53023 6879069d9d94
equal deleted inserted replaced
55381:7c9151c7dc40 55382:30b1b7b4dd86
   208     ClassReader(
   208     ClassReader(
   209             final byte[] classFileBuffer, final int classFileOffset, final boolean checkClassVersion) {
   209             final byte[] classFileBuffer, final int classFileOffset, final boolean checkClassVersion) {
   210         b = classFileBuffer;
   210         b = classFileBuffer;
   211         // Check the class' major_version. This field is after the magic and minor_version fields, which
   211         // Check the class' major_version. This field is after the magic and minor_version fields, which
   212         // use 4 and 2 bytes respectively.
   212         // use 4 and 2 bytes respectively.
   213         if (checkClassVersion && readShort(classFileOffset + 6) > Opcodes.V13) {
   213         if (checkClassVersion && readShort(classFileOffset + 6) > Opcodes.V14) {
   214             throw new IllegalArgumentException(
   214             throw new IllegalArgumentException(
   215                     "Unsupported class file major version " + readShort(classFileOffset + 6));
   215                     "Unsupported class file major version " + readShort(classFileOffset + 6));
   216         }
   216         }
   217         // Create the constant pool arrays. The constant_pool_count field is after the magic,
   217         // Create the constant pool arrays. The constant_pool_count field is after the magic,
   218         // minor_version and major_version fields, which use 4, 2 and 2 bytes respectively.
   218         // minor_version and major_version fields, which use 4, 2 and 2 bytes respectively.