[
https://issues.apache.org/jira/browse/NETBEANS-576?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rick Hegarty updated NETBEANS-576:
----------------------------------
Attachment: FindBugsJDK8.png
FindBugsJDK10.png
> The FindBugs plugin works with JDK8 but not with JDK10
> ------------------------------------------------------
>
> Key: NETBEANS-576
> URL: https://issues.apache.org/jira/browse/NETBEANS-576
> Project: NetBeans
> Issue Type: Bug
> Components: java - FindBugs
> Affects Versions: 9.0
> Reporter: Rick Hegarty
> Priority: Minor
> Attachments: FindBugsJDK10.png, FindBugsJDK8.png
>
>
> [1] I created a trivial Java application with some issues for FindBugs to
> identify:
>
> {quote}*package app;*
> *public class App {*
>
> *static String s1; int j; Boolean b1;*
> *public static void main(String[] args) {*
> *System.out.println("JRE version: " +
> System.getProperty("java.version"));*
> *if (s1 == "abc") {*
> *}*
> *}*
> *public boolean equals(App i) {*
> *int j = this.hashCode();*
> *return this.equals(new App());*
> *}*
> *}*
> {quote}
> [2] When the application was run it displayed displayed: *JRE version:
> 1.8.0_162*.
> [3]Then I ran *Source > Inspect...* using FindBugs (version 1.32) on the file
> *App.java*. FindBugs identified eight issues in the *Inspector* window, as
> shown in the attached screen shot *FindBugsJDK8.png*.
> [4]Next I added JDK 10 as a Java platform, and amended the properties of the
> project as follows:
> - Libraries > Java Platform: *JDK 10*
> - Sources > Source/Binary Format: *JDK 10*
> [5]As expected, when the application was run again it displayed: *JRE
> version: 10*
> [6] However, when I ran *Source > Inspect...* using FindBugs on the file
> *App.java* again, using code compiled and run with JDK10, there was no
> FindBugs output in the *Inspector* window. See the attached screen shot
> *FindBugsJDK10.png*.
> (My understanding is that FindBugs hasn't been updated for several years.
> Could NetBeans possibly use its successor, SpotBugs, instead?)
>
>
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists