which versions are you using: last maven plugin version
how is SonarQube deployed: zip
Context:
We have this exception during the sonar maven scanner and the given file has not been parsed by the sonar maven plugin.
java.lang.NullPointerException: Cannot invoke “org.eclipse.jdt.internal.compiler.lookup.TypeBinding.getSingleAbstractMethod(org.eclipse.jdt.internal.compiler.lookup.Scope, boolean)” because “targetType” is null
at org.eclipse.jdt.internal.compiler.ast.LambdaExpression.internalIsCompatibleWith(LambdaExpression.java:906)
I see meteoswiss in the logs. You are my weather application of choice.
Would it be possible for you to share wpe-common/src/main/java/ch/meteoswiss/wpe/common/config/FuncApplication.java? This is probably the only way to know exactly why the parsing is failing.
i’m happy to hear that your choice is our weather application
The java class is already as attachment in the topic. Tell me if you need something more.
I need compilable Java source files to reproduce this issue and investigate more.
Can you please provide me with a minimal, complete reproducer - Java file with all dependencies included and effective pom.xml?
I was able to reproduce your issue. It seems like a bug in ECJ, and I am investigating.
Suppose this is blocking your work and analysis. In that case, I suggest you extract either the first or second parameter of the method registerBean to the variable, which should be a temporary solution.
I will keep you updated on this topic.
Thanks a lot for reporting!