Issue #2941 - JDK 11: UnsupportedOperationException at AnnotationParser.scanClass.
Updated to ASM 7.0-beta, and defaulted AnnotationParser to ASM 7. Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
This commit is contained in:
parent
64dc930500
commit
1ba945b39b
|
@ -24,7 +24,6 @@ import java.io.InputStream;
|
|||
import java.net.URI;
|
||||
import java.net.URL;
|
||||
import java.nio.file.Path;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
|
@ -69,8 +68,8 @@ import org.objectweb.asm.Opcodes;
|
|||
public class AnnotationParser
|
||||
{
|
||||
private static final Logger LOG = Log.getLogger(AnnotationParser.class);
|
||||
protected static int ASM_OPCODE_VERSION = Opcodes.ASM6; //compatibility of api
|
||||
protected static String ASM_OPCODE_VERSION_STR = "ASM6";
|
||||
protected static int ASM_OPCODE_VERSION = Opcodes.ASM7; //compatibility of api
|
||||
protected static String ASM_OPCODE_VERSION_STR = "ASM7";
|
||||
|
||||
/**
|
||||
* Map of classnames scanned and the first location from which scan occurred
|
||||
|
@ -118,6 +117,11 @@ public class AnnotationParser
|
|||
asmVersion = Opcodes.ASM6;
|
||||
break;
|
||||
}
|
||||
case 7:
|
||||
{
|
||||
asmVersion = Opcodes.ASM7;
|
||||
break;
|
||||
}
|
||||
default:
|
||||
{
|
||||
LOG.warn("Unrecognized runtime asm version, assuming {}", ASM_OPCODE_VERSION_STR);
|
||||
|
|
2
pom.xml
2
pom.xml
|
@ -26,7 +26,7 @@
|
|||
<!-- default values are unsupported, but required to be defined for reactor sanity reasons -->
|
||||
<alpn.version>undefined</alpn.version>
|
||||
<conscrypt.version>1.1.4</conscrypt.version>
|
||||
<asm.version>6.2</asm.version>
|
||||
<asm.version>7.0-beta</asm.version>
|
||||
<jmh.version>1.21</jmh.version>
|
||||
<jmhjar.name>benchmarks</jmhjar.name>
|
||||
<tycho-version>1.2.0</tycho-version>
|
||||
|
|
Loading…
Reference in New Issue