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
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
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)
>