Community
Participate
Working Groups
One of the really nasty (IMO, and in the opinion of others) "features" of the Java languages is the ability to access static methods/fields through references, where the type of the reference is used rather than anything else. For instance: Foo b = new Bar(); b.staticMethod(); calls Foo.staticMethod(); as does: Foo n = null; n.staticMethod(); This is generally a really bad idea. Is there any chance that we could have a configurable compiler warning for it, as with things like unused parameters? Jon
Good suggestion, should consider post 2.0
Fixed as bug 21787
*** This bug has been marked as a duplicate of 21787 ***