Kotlin plugin does not recognize value classes

  • SonarQube Developer Edition 7.9.1.27448, Kotlin plugin 1.5.0 build 315
  • value class MyClass(val myParam: BigDecimal? = null) is flagged with “A parsing error occurred in this file” at this precise line

inline classes (value class) have been added to Kotlin in version 1.4.30 which was released on February 3rd 2021 (What's new in Kotlin 1.4.30 | Kotlin)

There seems to be no update available for the Kotlin plugin

Hi,

Your version is past EOL and Kotlin analysis has come a long way since then. You should upgrade to either the latest version or the current LTS at your earliest convenience. Your upgrade path is:

7.9.1 → 8.9.7 → 9.3 (last step optional)

You may find the Upgrade Guide and the LTS-to-LTS Upgrade Notes helpful. If you have questions about upgrading, feel free to open a new thread for that here.

 
Ann