Unresolved symbols reported as use of preview features

We run java analysis on a Community 25.1.0.102122 server using sonar maven scanner 5.2.
We get a warning Use of preview features have been detected during analysis. I have turned on debugging and I get:

[DEBUG] Unresolved imports/types detected during analysis. Enable DEBUG mode to see them.
[DEBUG] Unresolved imports/types:
– SomeSymbol cannot be resolved

  • src/main/path/to/SomeFile.java

… more entries of the same type

[DEBUG] Use of preview features:
– SomeOtherSymbol cannot be resolved

  • src/main/path/to/SomeFile.java

… more entries of the same type

The two types of warnings are reported for the same file.

Preview usage seems to be a false warning, I don’t get why unresolved symbols are reported as use of preview features.
Can someone explain this, please?

Only the latest version of SonarQube Community Build is considered active, so you’ll need to update and see if the situation is still replicable before we can help you.

Your update path is:

25.1 → 25.10

You may find these resources helpful:

If you have questions about upgrading, feel free to open a new thread for that here.

If your error persists after update, please come back to us.