This is the mail archive of the java-discuss@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

jboolean / _Jv_InstanceOf / .class compiler problem


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 ]



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]