jboolean / _Jv_InstanceOf / .class compiler problem

Bryce McKinlay bryce@albatross.co.nz
Sat Apr 1 00:00:00 GMT 2000


Tom Tromey wrote:
> I've seen some jboolean bugs in the past, but I could never reduce
> them to a simple test. Do you have a test? Is there a PR?

I don't have a test case outside the context of the _Jv_IsInstanceOf call. With
my new implementation of this method (in the constant time patch), its result
value never gets set properly (debugger shows random garbage values), and so
"instanceof" always returns true. But this only occurs when dealing with code
compiled from .class files. The source compiler and interpreter are unaffected.
I also managed to work around it by changing the return value of the call to
"int", but thats too ugly.
 [ bryce ]


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /