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?