This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
When displaying jackpot/rules/src/org/netbeans/modules/jackpot/rules/parser/GeneratedMatcher.java with the Jsr199 project open, an "accessing static field" warning is flagged on line 304: return st.isErroneous(). "st" is a com.sun.tools.javac.code.Type instances, and isErroneous() is not static. Type.isErroneous(List<Type>) is, however, so maybe the tester doesn't differentiate between overloaded methods. Found in 6.0-M10.
Here is an easier way how to reproduce this bug (the problem occurs on the last line where is st.indexOf()): public class StaticTest { void indexOf() {} static void indexOf(char c) {} public static void main(String[] args) { StaticTest st = new StaticTest(); st.indexOf(); } }
Are you able to reproduce it with the latest build? There were several fixes recently.
It seems that it is fixed. I can not reproduce this issue in latest nightly build (Build 200707100000).
Has been already fixed as a different bug - I do not have the issue number offhand, sorry.
*** Issue 109328 has been marked as a duplicate of this issue. ***