Update annotation parser for asm 6 support.
This commit is contained in:
Jan Bartel 2017-10-18 12:42:10 +11:00
parent aa212df4b1
commit 84ffdf1447
1 changed files with 2 additions and 5 deletions

View File

@ -70,7 +70,7 @@ public class AnnotationParser
{
private static final Logger LOG = Log.getLogger(AnnotationParser.class);
protected static int ASM_OPCODE_VERSION = Opcodes.ASM5; //compatibility of api
protected static int ASM_OPCODE_VERSION = Opcodes.ASM6; //compatibility of api
protected Map<String, List<String>> _parsedClassNames = new ConcurrentHashMap<>();
private final int _javaPlatform;
@ -486,10 +486,7 @@ public class AnnotationParser
{
if (javaPlatform==0)
javaPlatform = JavaVersion.VERSION.getPlatform();
// TODO can only support 8 until ASM 6 is available
if (javaPlatform!=8)
LOG.warn("Annotation parsing only supports java8 until ASM6 upgrade");
_javaPlatform = 8;
_javaPlatform = javaPlatform;
}
/**