sonar-findbugs icon indicating copy to clipboard operation
sonar-findbugs copied to clipboard

Support Java SDK 8 and 21 simultaneously

Open FelipeJK opened this issue 1 year ago • 3 comments

Issue Description

We have applications running on various versions of the Java SDK, including versions 8, 17, and 21.

We are experiencing a compatibility issue with the plugin sonar-findbugs-plugin.

Currently, the plugin works with either Java 8 or Java 21 (depending on the version), but not both simultaneously.

Environment

Component Version
SonarQube 10.4
Sonar-FindBugs 4.2.0 (for Java 8) - 4.2.6 (for Java 21)
Java 8, 17, 21

FelipeJK avatar Jun 14 '24 17:06 FelipeJK

Java 21 did not exist when 4.2.0 was released, so it cannot analyse Java 21 bytecode and is incompatible indeed. But what exactly is the problem when using 4.2.6 with Java 8 bytecode?

gtoison avatar Jun 14 '24 20:06 gtoison

Hello @FelipeJK Any idea what is the problem with Java 8 bytecode when using the latest version?

gtoison avatar Jun 27 '24 11:06 gtoison

Sorry for the late reply. We are going to test this scenario. We'll let you know the behavior asap.

FelipeJK avatar Jun 27 '24 17:06 FelipeJK

Please comment here or open a new issue if the problem persists but this is supposed to work

gtoison avatar Oct 30 '24 15:10 gtoison