Skip to content
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

Outdated Sonar-Java Version? #55

Open
florianrusch opened this issue Sep 20, 2019 · 4 comments
Open

Outdated Sonar-Java Version? #55

florianrusch opened this issue Sep 20, 2019 · 4 comments
Assignees

Comments

@florianrusch
Copy link

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! 🙂

@fede-moya
Copy link
Contributor

fede-moya commented Oct 13, 2020

@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
Copy link

rcrlik commented Jul 9, 2021

@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
Copy link

Support for JDK17 would be appreciated. :-)

@neseleznev
Copy link

neseleznev commented Jan 14, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants