java/6754: Casting to gnu.gcj.RawData causes SEGV
Tom Tromey
tromey@redhat.com
Fri May 31 15:39:00 GMT 2002
>>>>> "Bryce" == Bryce McKinlay <bryce@waitaki.otago.ac.nz> writes:
>> public static RawData bar(Object o) {
>> return (RawData)o;
>> }
Bryce> This isn't a bug. It isn't really safe to do anything with
Bryce> non-Java objects in Java code, you certainly can't cast one.
We should probably check for this case in the compiler and reject it.
We should also reject `instanceof RawData'.
That would be more friendly for the user.
The problems with extensions... :-(
Tom
More information about the Java
mailing list