Community
Participate
Working Groups
In 3.0M2 this was detected, but not in I20030722 anymore. public void foo(String s) { int r = ((Object) s).hashCode(); }
This is an expected consequence of fix for bug 40572. Receiver casts are no longer signalled, since compiler will use the receiver type in the constant pool reference, thus in between 1.3/1.4 there would be subtle differences in the generated bytecode depending on the presence of the cast which users wouldn't likely understand. Closing