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
@lombok.experimental.Delegate, causing an error #446
Comments
@pengsoftdotcom 请提供一下详细的错误信息和截图。 |
eclipse.buildId=4.1.0.201812201400-RELEASE
java.version=11
java.vendor=Oracle Corporation
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=zh_CN_#Hans
Framework arguments: -product org.springframework.boot.ide.branding.sts4 -product org.springframework.boot.ide.branding.sts4 -product org.springframework.boot.ide.branding.sts4 -keyring /Users/neil.dang/.eclipse_keyring
Command-line arguments: -os macosx -ws cocoa -arch x86_64 -product org.springframework.boot.ide.branding.sts4 -product org.springframework.boot.ide.branding.sts4 -data file:/Users/neil.dang/Work/ -product org.springframework.boot.ide.branding.sts4 -keyring /Users/neil.dang/.eclipse_keyring
org.eclipse.core.jobs
Error
Tue Jan 22 14:37:57 CST 2019
An internal error occurred during: "P3C Code Analysis".
java.lang.NoClassDefFoundError: javax/annotation/Generated
at com.alibaba.smartfox.eclipse.pmd.rule.MissingOverrideAnnotationRule$MissingOverrideVisitor.isGenerated(MissingOverrideAnnotationRule.kt:79)
at com.alibaba.smartfox.eclipse.pmd.rule.MissingOverrideAnnotationRule$MissingOverrideVisitor.visit(MissingOverrideAnnotationRule.kt:60)
at org.eclipse.jdt.core.dom.MethodDeclaration.accept0(MethodDeclaration.java:593)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2815)
at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2886)
at org.eclipse.jdt.core.dom.TypeDeclaration.accept0(TypeDeclaration.java:447)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2815)
at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2886)
at org.eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java:258)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2815)
at com.alibaba.smartfox.eclipse.pmd.rule.AbstractEclipseRule.visit(AbstractEclipseRule.kt:72)
at net.sourceforge.pmd.lang.java.rule.AbstractJavaRule.visitAll(AbstractJavaRule.java:31)
at net.sourceforge.pmd.lang.java.rule.AbstractJavaRule.apply(AbstractJavaRule.java:25)
at net.sourceforge.pmd.lang.rule.AbstractDelegateRule.apply(AbstractDelegateRule.java:215)
at net.sourceforge.pmd.RuleSet.apply(RuleSet.java:306)
at net.sourceforge.pmd.RuleSets.apply(RuleSets.java:125)
at net.sourceforge.pmd.SourceCodeProcessor.processSource(SourceCodeProcessor.java:149)
at net.sourceforge.pmd.SourceCodeProcessor.processSourceCode(SourceCodeProcessor.java:80)
at com.alibaba.smartfox.eclipse.job.CodeAnalysis.processFile(CodeAnalysis.kt:119)
at com.alibaba.smartfox.eclipse.job.CodeAnalysis.processFileToMakers(CodeAnalysis.kt:97)
at com.alibaba.smartfox.eclipse.job.CodeAnalysis$processResources$job$1.run(CodeAnalysis.kt:79)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
… 在 2019年1月22日,下午2:27,Keke Zhang ***@***.***> 写道:
@pengsoftdotcom <https://github.com/pengsoftdotcom> 请提供一下详细的错误信息和截图。
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#446 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AfRBq3qB23FsiVAgEjj7Sj7n57pwQXngks5vFq9bgaJpZM4aEseA>.
|
@imu2008 看下这个问题哈 |
@pengsoftdotcom 看起来像是sts、jdk11和p3c插件版本不兼容导致,建议试试更换一下jdk版本或者sts版本。 |
Is it possible to make p3c compatible with pmd 3.11.0 and jdk11 ? |
这个原因是因为STS使用了1.8以上的JDK,新版本的JDK不再支持javax.annotation.Generated。 解决方案: 修改com.alibaba.smartfox.eclipse.plugin/META-INF/MANIFEST.MF,在Bundle-ClassPath下增加依赖 target/lib/javax.annotation-api.jar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
An internal error occurred during: "P3C Code Analysis".
javax/annotation/Generated
The text was updated successfully, but these errors were encountered: