Skip to content
This repository was archived by the owner on Feb 23, 2018. It is now read-only.

Commit 51ec7ee

Browse files
authored
Merge pull request #12 from retronym/ticket/java9
Support Java 9 bytecode format
2 parents dd1ca88 + ccbe1ca commit 51ec7ee

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/main/java/scala/tools/asm/ClassReader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ public ClassReader(final byte[] b) {
166166
public ClassReader(final byte[] b, final int off, final int len) {
167167
this.b = b;
168168
// checks the class version
169-
if (readShort(off + 6) > Opcodes.V1_8) {
169+
if (readShort(off + 6) > Opcodes.V1_9) {
170170
throw new IllegalArgumentException();
171171
}
172172
// parses the constant pool

src/main/java/scala/tools/asm/Opcodes.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ public interface Opcodes {
5858
int V1_6 = 0 << 16 | 50;
5959
int V1_7 = 0 << 16 | 51;
6060
int V1_8 = 0 << 16 | 52;
61+
int V1_9 = 0 << 16 | 53;
6162

6263
// access flags
6364

0 commit comments

Comments
 (0)