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.
String text; text.indexOf('#'); For the above code fragment I get a "Accessing static field" warning shown for text. It then suggests replacing text with String. This is clearly incorrect. I have noticed this in a couple of places when referencing objects of classes that I have written. The problem seems to be that the syntax checker gets confused if there is a static method of the same name as the non-static method that is actually being called. In this case the syntax checker should take note of the arguments that are being supplied.
Incidentally I am using milestone 10 and JDK 1.5.0_11.
Reassigning to Java for evaluation.
This should be fixed now. Thanks for your report *** This issue has been marked as a duplicate of 109179 ***