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.
Summary: | "Accessing static field" warning for non-static method reference | ||
---|---|---|---|
Product: | java | Reporter: | _ tball <tball> |
Component: | Hints | Assignee: | issues@java <issues> |
Status: | RESOLVED WORKSFORME | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
_ tball
2007-07-09 21:06:03 UTC
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. *** |