The Artima Developer Community
Sponsored Link

Java Buzz Forum
Don't reference statics through instances. Period.

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Joe Shelby

Posts: 101
Nickname: acroyear
Registered: Jun, 2003

Joe Shelby is a senior software developer at ISX Corporation.
Don't reference statics through instances. Period. Posted: Feb 22, 2004 10:31 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Joe Shelby.
Original Post: Don't reference statics through instances. Period.
Feed Title: Joe's Java Jottings
Feed URL: http://www.blog-city.com/bc/
Feed Description: Notes, observations, and occasional other stuff on Java, with concentrations on Swing, XML, and the Semantic (Object) Web.
Latest Java Buzz Posts
Latest Java Buzz Posts by Joe Shelby
Latest Posts From Joe's Java Jottings

Advertisement
DavidFlanagan.com:The following program does not throw a NullPointerException public class StaticFieldThroughNull { public static void main(String[] args) { Double d = null; System.out.println(d.MAX_VALUE); } } This really is supposed to work this way. This is one of those cases where the IDEs have worked pretty hard to make up for shortcomings in the Java compiler. Eclipse will flag that with a

Read: Don't reference statics through instances. Period.

Topic: PalmSource Gets Java Previous Topic   Next Topic Topic: Feyerabend on what's wrong with software

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use