mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[java] runtime ASM version detection (IDEA-191331)
This commit is contained in:
+1
-1
@@ -26,7 +26,7 @@ class PatternInstrumenter extends ClassVisitor implements Opcodes {
|
||||
static final String JAVA_UTIL_REGEX_PATTERN = "[Ljava/util/regex/Pattern;";
|
||||
static final String NULL_PATTERN = "((((";
|
||||
|
||||
private static final boolean NEW_ASM;
|
||||
static final boolean NEW_ASM;
|
||||
static {
|
||||
try { NEW_ASM = (Integer)Opcodes.class.getField("API_VERSION").get(null) > Opcodes.ASM6; }
|
||||
catch (Exception e) { throw new RuntimeException(e); }
|
||||
|
||||
Reference in New Issue
Block a user