Add compatibility enum for Java 9 even though we don't support it yet

This commit is contained in:
Mumfrey committed 2017-08-30 18:20:17 +01:00
1 parent a05e7347a5
commit b08f87e202
1 file changed
+15
@@ -642,8 +642,23 @@ public final class MixinEnvironment implements ITokenProvider {
return JavaVersion.current() >= 1.8;
}
},
/**
* Java 9 and above
*/
JAVA_9(9, CompatibilityLevel.CLASS_V1_9, true) {
@Override
boolean isSupported() {
return false;
}
};
// Temp, until ASM supports Java 9
private static final int CLASS_V1_9 = 0 << 16 | 53;
private final int ver;
private final int classVersion;