Re: what's wrong with this thread?

thufir.hawat_at_mail.com
Date: 07/25/04


Date: Sun, 25 Jul 2004 19:34:42 GMT

On Wed, 7 Jul 2004, John C. Bollinger wrote:
[..]
> the type of the appropriate class. The type to use is determined at compile,
> however, which means that the value of the expression is irrelevant. So for
> instance, this compiles and runs, producing "Hi!" on the standard output:
>
> class Test {
>
> static String hi = "Hi!";
>
> public static void main(String[] args) {
> Test t = null;
>
> System.out.println(t.hi); // t is null!
> }
> }
>
> This whole business is regarded by many to be a Java wart, but it has been
> part of Java from the beginning and will never be changed.
[..]

why is this a wart? by definition static means not in reference to a
particular object. there aren't any Math instances, but there's a PI
value.

if this is a wart, how could it be hypothetically fixed? how should Java's
successor fix this problem?

Thufir Hawat