codeclimate / codeclimate-sonar-java

Maintainability and reliability checks for Java
GNU Affero General Public License v3.0
3 stars 6 forks source link

Outdated Sonar-Java Version? #55

Open florianrusch opened 5 years ago

florianrusch commented 5 years ago

Hey everybody,

is this the right place for issues with the sonar-java plugin (https://docs.codeclimate.com/docs/sonar-java)?

I have several questions:

  1. README.md outdated? The example config there shows almost engines instead of the plugins.
  2. Are you guys still using sonar-java 4.14? The current version is 5.14.x.
  3. In connection with the 2nd questions: Is it correct that I can't use sonar-java with java 11 code at the moment? If I set the configuration sonar.java.source: 11, I get this log message:
    D, [2019-09-20T06:08:25.777774 #1] DEBUG -- : engine stderr: INFO: Invalid java version (got "11.0"). The version will be ignored. Accepted formats are "1.X", or simply "X" (for instance: "1.5" or "5", "1.6" or "6", "1.7" or "7", etc.)

Hope someone can help! 🙂

f-moya commented 4 years ago

@florianrusch we have updated our beta channel for version 5.14. Support for later versions will require more effort but it's in the queue.

Regards !

rcrlik commented 3 years ago

@fede-moya Hello, any progress here? We currently have a project written in Java 11 (later planning an upgrade to Java 17 maybe even). Can we currently use sonar-java or are there still problems?

andreasaronsson commented 2 years ago

Support for JDK17 would be appreciated. :-)

neseleznev commented 2 years ago

I'm unable to use sonar-java from beta channel for our Java 11 sources.

ERROR: Unable to create symbol table for : '[path=/...]'
java.lang.ClassCastException: org.sonar.java.resolve.UnknownType cannot be cast to org.sonar.java.resolve.DeferredType
    at org.sonar.java.resolve.TypeAndReferenceSolver.visitVariable(TypeAndReferenceSolver.java:933) ~[sonar-java-plugin-5.14.0.18788.jar:na]

Is there any estimation for 6.x? As I can see, the issue was addressed more than two years ago https://community.sonarsource.com/t/classcastexception-during-scanning-java-11/17669/2