Andromeda icon indicating copy to clipboard operation
Andromeda copied to clipboard

能否增加Java 1.8编译支持?

Open kylin17 opened this issue 5 years ago • 1 comments

如题,使用

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

编译报错:

Caused by: java.io.IOException: invalid constant type: 18
	at javassist.bytecode.ConstPool.readOne(ConstPool.java:1090)
	at javassist.bytecode.ConstPool.read(ConstPool.java:1033)
	at javassist.bytecode.ConstPool.<init>(ConstPool.java:149)
	at javassist.bytecode.ClassFile.read(ClassFile.java:737)
	at javassist.bytecode.ClassFile.<init>(ClassFile.java:108)
	at javassist.CtClassType.getClassFile2(CtClassType.java:190)
	... 53 more

查看plugin项目中,javassist使用的版本是javassist:3.12.1.GAjavassist 3.18以下的版本不支持在JDK1.8下运行。

kylin17 avatar Mar 26 '19 07:03 kylin17

#34 I send a pull request to you. Please review the code and test.

kylin17 avatar Mar 26 '19 09:03 kylin17