Hi Paulex!
fyi the following method:
public int compare(Object object1, Object object2) {
// test cast
E e1 = (E) object1;
E e2 = (E) object2;
return 0;
}
compiles to the following bytecode:
0: aload_1
1: astore_3
2: aload_2
3: astore 4
5: iconst_0
6: ireturn
So, it does not have any cast testing.
I'll slightly update the test if you don't mind
Thanks,
Mikhail
---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]