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

Commit ccbe1ca

Browse files
committed
Support Java 9 bytecode format
AFAIK the bytecode format was bumped to indicate that code compiled with `-target 9` requires boostrap methods that only exist in the Java 9 standard library for the new String concatenation based on invokedynamic. So we probably don't need changes to the bytecode parser/writers.
1 parent 787a147 commit ccbe1ca

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)