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

javac compiler exception - errata

1999-02-24 Thread Ron Resnick
Thanks for the rapid responses Martin, Steve. I'll quickly take this off blackdown due to its non-Linux relevance. I thought I would point out the following though: If you insert an actual executable hunk of code into the if block, things work properly. Eg, consider class foo { void bar (Objec