Use ASM5
This commit is contained in:
@@ -37,7 +37,7 @@ trait Eval {
|
||||
fun invokeMethod(instance: Value, methodDesc: MethodDescription, arguments: List<Value>, invokespecial: Boolean = false): Value
|
||||
}
|
||||
|
||||
class SingleInstructionInterpreter(private val eval: Eval) : Interpreter<Value>(ASM4) {
|
||||
class SingleInstructionInterpreter(private val eval: Eval) : Interpreter<Value>(ASM5) {
|
||||
override fun newValue(`type`: Type?): Value? {
|
||||
if (`type` == null) {
|
||||
return NOT_A_VALUE
|
||||
|
||||
@@ -24,10 +24,10 @@ fun buildTestSuite(
|
||||
val ownerClass = javaClass<TestData>()
|
||||
val inputStream = ownerClass.getClassLoader()!!.getResourceAsStream(ownerClass.getInternalName() + ".class")!!
|
||||
|
||||
ClassReader(inputStream).accept(object : ClassVisitor(ASM4) {
|
||||
ClassReader(inputStream).accept(object : ClassVisitor(ASM5) {
|
||||
|
||||
override fun visitMethod(access: Int, name: String, desc: String, signature: String?, exceptions: Array<out String>?): MethodVisitor? {
|
||||
return object : MethodNode(access, name, desc, signature, exceptions) {
|
||||
return object : MethodNode(ASM5, access, name, desc, signature, exceptions) {
|
||||
override fun visitEnd() {
|
||||
val testCase = buildTestCase(ownerClass, this, create)
|
||||
if (testCase != null) {
|
||||
|
||||
Reference in New Issue
Block a user