Summary: | warn for non-static references to static members | ||
---|---|---|---|
Product: | gcc | Reporter: | Tom Tromey <tromey> |
Component: | java | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | CC: | gcc-bugs, java-prs |
Priority: | P3 | Keywords: | diagnostic |
Version: | 3.3 | ||
Target Milestone: | 4.3.0 | ||
Host: | Target: | ||
Build: | Known to work: | ||
Known to fail: | Last reconfirmed: | 2005-09-30 05:25:53 | |
Bug Depends on: | 28067 | ||
Bug Blocks: |
Description
Tom Tromey
2002-11-18 13:16:01 UTC
Why should anyone want such a warning? Surely lots of code references static objects in non-static contexts. What this means is give a warning if you write, eg: foo.bar() where "bar" is a static method. This is perfectly valid, but weird. The eclipse compiler, and rightly so I think, flags this as a warning. feedback received and I agree with Tom on this one. All gcj front end bugs have been fixed by the gcj-eclipse branch merge. I'm mass-closing the affected PRs. If you believe one of these was closed in error, please reopen it with a note explaining why. Thanks. |