Re: javac compiler exception - errata

1999-02-24 Thread Uli Luckas
There is another modification to your code the makes the compiler happy: public class foo { static Class oClass = (new Object()).getClass(); public void bar(Object param) { if (oClass == param.getClass()) { /* do nothing */ ; } } } Why is that? I don't know - I can only try

Re: javac compiler exception

1999-02-24 Thread Bertl
Ron Resnick wrote: > You don't get to see internal javac compiler errors every day - Not every day, but once a month... (Codeconversion, stackSize Null, np...) Sorry for OT, couldn't resist... -- To UNSUBSCRIBE, email to [EMA

Re: javac compiler exception

1999-02-24 Thread Martin Sorgatz
Ron Resnick wrote: > > Heh. > > You don't get to see internal javac compiler errors every day - > this was kind of neat: > > [resnick@rresnick f3]$ javac foo.java > java.lang.NullPointerException > at > sun.tools.tree.ConditionalExpression.costInline(ConditionalExpression.java) >