[kaffe] verifier and threads

Helmer Krämer hkraemer@freenet.de
Tue Jan 21 01:40:02 2003


This is a multi-part message in MIME format.

--Multipart_Tue__21_Jan_2003_10:40:28_+0100_09413048
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

On Mon, 20 Jan 2003 11:34:31 -0500 (EST)
gonzo <Robert.N.Gonzalez@williams.edu> wrote:

Hi Rob,

> > > my other bug is also weird.  in Verify3, if you:
> > > 	postExceptionMessage(einfo, JAVA_LANG(VerifyError), MSG);
> > > when the error's thrown it yields a ClassNotFoundException and not a
> > > VerifyError (though MSG is retained).  however, ClassFormatError is found
> > > easily.  i can't seem to figure out why this is.
> > > 
> > > to reproduce this, simply post a VerifyError in verify2() or verify3().
> > 
> > [ changes to verify.c and some stacktraces ]

seems like I tracked this one down. The problem was that
Class.forName () catched the VerifyError and threw a
ClassNotFoundException instead. I've attached a pretty
simple patch that should fix this.

Greetings,
Helmer
--Multipart_Tue__21_Jan_2003_10:40:28_+0100_09413048
Content-Type: application/octet-stream;
 name="class.patch"
Content-Disposition: attachment;
 filename="class.patch"
Content-Transfer-Encoding: base64

SW5kZXg6IENoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09ClJDUyBmaWxlOiAvY3ZzL2thZmZlL2thZmZlL0No
YW5nZUxvZyx2CnJldHJpZXZpbmcgcmV2aXNpb24gMS4xMjQyCmRpZmYgLXUgLXAgLXIxLjEyNDIg
Q2hhbmdlTG9nCi0tLSBDaGFuZ2VMb2cJMTQgSmFuIDIwMDMgMTQ6NTI6MDggLTAwMDAJMS4xMjQy
CisrKyBDaGFuZ2VMb2cJMjEgSmFuIDIwMDMgMDk6MjY6MDkgLTAwMDAKQEAgLTEsMyArMSw4IEBA
CisyMDAzLTAxLTIxICBIZWxtZXIgS3LkbWVyICA8aGtyYWVtZXJAZnJlZW5ldC5kZT4KKworCSog
bGlicmFyaWVzL2phd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