jhunters / jprotobuf

A useful utility library for java programmer using google protobuf
Apache License 2.0
897 stars 283 forks source link

java.lang.IllegalArgumentException: 无效的源发行版: 1.8 #200

Open puXiaoyi opened 1 year ago

puXiaoyi commented 1 year ago

Codec simpleTypeCodec = ProtobufProxy.create(SimpleTypeTest.class);

cause = {IllegalArgumentException@9262} "java.lang.IllegalArgumentException: 无效的源发行版: 1.8" detailMessage = "无效的源发行版: 1.8" cause = {IllegalArgumentException@9262} "java.lang.IllegalArgumentException: 无效的源发行版: 1.8" stackTrace = {StackTraceElement[19]@9277} 0 = {StackTraceElement@9280} "com.sun.tools.javac.main.RecognizedOptions$GrumpyHelper.error(RecognizedOptions.java:88)" 1 = {StackTraceElement@9281} "com.sun.tools.javac.main.RecognizedOptions$9.process(RecognizedOptions.java:348)" 2 = {StackTraceElement@9282} "com.sun.tools.javac.api.JavacTool.processOptions(JavacTool.java:242)" 3 = {StackTraceElement@9283} "com.sun.tools.javac.api.JavacTool.getTask(JavacTool.java:199)" 4 = {StackTraceElement@9284} "com.sun.tools.javac.api.JavacTool.getTask(JavacTool.java:68)" 5 = {StackTraceElement@9285} "com.baidu.bjf.remoting.protobuf.utils.compiler.JdkCompiler.doCompile(JdkCompiler.java:201)" 6 = {StackTraceElement@9286} "com.baidu.bjf.remoting.protobuf.utils.compiler.AbstractCompiler.compile(AbstractCompiler.java:46)" 7 = {StackTraceElement@9287} "com.baidu.bjf.remoting.protobuf.ProtobufProxy.doCreate(ProtobufProxy.java:274)" 8 = {StackTraceElement@9288} "com.baidu.bjf.remoting.protobuf.ProtobufProxy.create(ProtobufProxy.java:174)" 9 = {StackTraceElement@9289} "com.baidu.bjf.remoting.protobuf.ProtobufProxy.create(ProtobufProxy.java:155)" 10 = {StackTraceElement@9290} "com.baidu.bjf.remoting.protobuf.ProtobufProxy.create(ProtobufProxy.java:128)" 11 = {StackTraceElement@9291} "com.baidu.bjf.remoting.protobuf.ProtobufProxy.create(ProtobufProxy.java:116)"

java:jdk1.8.0_281 jprotobuf:jprotobuf-2.4.20.jar protobuf:3.25.0

IDEA的Project Settting和Settings 都统一设置了正确的jdk版本和语言级别,请问出现这样的报错可能是什么原因,谢谢