Skip to content

PMD not recognizing 'super' keyword in Java #4744

Answered by adangel
NathanMacDiarmid asked this question in Q&A
Discussion options

You must be logged in to vote

Yes - The extension Language Support for Java(TM) by Red Hat uses the Eclipse Language Server and Eclise JDT under the hood.
The problem seems to happen, if VS Code compiles the project at the same time the maven build is compiling - then it can be that in the produced jar file, the bad compilation result from Eclipse JDT is added. As @oowekyala suggested, exit vscode, and run maven without vscode, then it should work (This seems to be the only reliable way).

By the way, with your command line, you are not skipping tests and javadoc. The property need to be "maven.test.skip" and "maven.javadoc.skip":

./mvnw clean package -Dmaven.test.skip=true -Dmaven.javadoc.skip=true -Pcli-dist

Instead…

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
3 replies
@NathanMacDiarmid
Comment options

@jsotuyod
Comment options

@NathanMacDiarmid
Comment options

Comment options

You must be logged in to vote
4 replies
@NathanMacDiarmid
Comment options

@oowekyala
Comment options

@adangel
Comment options

Answer selected by NathanMacDiarmid
@NathanMacDiarmid
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants