Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能否增加Java 1.8编译支持? #33

Open
kylin17 opened this issue Mar 26, 2019 · 1 comment
Open

能否增加Java 1.8编译支持? #33

kylin17 opened this issue Mar 26, 2019 · 1 comment

Comments

@kylin17
Copy link

kylin17 commented Mar 26, 2019

如题,使用

    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
Copy link
Author

kylin17 commented Mar 26, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant