[Opensource] Bug in EA-3 with JBuilder 7
Michael Rimov
rimovm at centercomp.com
Mon Jun 17 21:44:24 PDT 2002
Hey All,
Upgraded to JBuilder 7 today and found an interesting Bug with the
compiler/debugger. The deal is that technically you cannot have an
Interface passed into your function and treat it as an Object at the same
time without an explicit cast. Here's an example:
checkClassName(UserInfo ui) {
System.out.println(ui.getClass().getName()); //Will throw
java.lang.NoSuchMethodError
}
instead what you have to do is:
((Object)ui).getClass().getName();
I have no idea if by the language spec this is correct or not. But anybody
currently running Expresso under JBuilder 7 will have this problem. I've
fixed two occurances in CVS, but I'm sure there's more. So I will keep you
posted on a quick ea-3b
Thanks!
-Mike
More information about the Opensource
mailing list