Java 25 support in SonarQube?

When can we get support for Java 25 in SonarQube? In which SonarQube version ?

1 Like

Hello,

Currently, support is planned for early next year, as we are waiting on necessary dependencies such as the Eclipse Compiler for Java to support Java 25. We’re exploring options to provide earlier support, possibly by using a beta version of ECJ, but nothing has been finalized at this point.

If I run a scan on a Java 25 application, will it fail?

That really depends if you’re using Java 25 features or not – if yes, you will run into parsing errors, which will lower the quality of analysis.

My understanding was that SonarQube relies on bytecode analysis, so it will not be able to analyse code compiled with target 25, right? And if you target a previous version, your source level cannot be higher than that target anyways.

Do you have an idea of which LTA release will support 25? Will it be backported to 2025.4 (or .1) for instance?

As a side note, the LTA FAQ still mentions 2025.1 as the latest LTA, while the downloads page suggests 2025.4 :wink:

1 Like

It’s a bit more nuanced than that. You may see warnings like this during analysis…

[**WARNING**] 10:52:12.361 Use of preview features have been detected during analysis. Enable DEBUG mode to see them.

or run into more serious issues. It’s not supported, but it can work in some cases. In any cases, we haven’t declared support yet.

Unfortunately support is not targeted until after 2026.1 LTA. Support will not be backported.

Thanks for the note. We’re working on this page.

Thanks for your answer.

Should I understand correctly that the first LTA to fully support Java 25 should thus be 2027.1 then? (since there should be 1 LTA per year)

In the absence of another LTA version next year (which isn’t unheard of, 2025.4 was designated LTA this year), yes.

Could you update the LTA FAQ? This doesn’t seem to be true any longer:

SonarQube Server LTA release happens every 12 months

It is confusing that 2025.4 is suddenly now the new LTA release

Any news on that? It’s “early next year” now. (Happy new year. :partying_face: )

2 Likes