On Tue, 15 Feb 2000, Vince Darley wrote:

> Mo,
> 
> Here's my latest progress:
> 
> I've compiled tclblend against Tcl 8.3 and IBM's jdk 1.1.8, and
> java::defineclass now works, BUT '$class newInstance' gives me:
> 
> java.lang.VerifyError: Cust
> 
> or
> 
> java.lang.VerifyError: bios/Cust
> 
> (depending on if I put the class in a package or not).
> 
> Which I'm now looking into...  The code does seem to get further than with
> Sun's jdk 1.2, although I've had to make changes to the code to compile with
> jdk 1.1, and now I can also kind of load the code into Sun's jdk, but with a
> similar error:
> 
> java.lang.VerifyError: (class: bios/Cust, method: initialise signature: ()V)
> Illegal instruction found at offset 25 (although this is a 1.1 compiled
> version of the code loading into a 1.2 jvm).
> 
> I'm not entirely sure what conclusions to draw from this...
> 
> Vince.

Still sounds like a JVM bug to me. I remember you mentioned something
about the class data getting hosed before it was sent to the
java::defineclass command. Are you still seeing that problem?

What happens if you recompile your source code with the
compiler that comes with JDK 1.2? Do you still get those
verify errors from the Sun JDK?

This is all very strange. Another thing you could try would
be to just take the same .class files and write a small
Java class that does the loading. This would bypass
Tcl/Java completely so you can be sure it is a JVM bug.
If you can create a simple Java class that shows the JVM
bug, post a note the the IBM JDK newsgroup right away.
The IBM folks really seem to want to fix problems in
the JDK port while Sun seems to just want 1.1.X to die.

Mo DeJong
Red Hat Inc.

----------------------------------------------------------------
The TclJava mailing list is sponsored by Scriptics Corporation.
To subscribe:    send mail to [EMAIL PROTECTED]  
                 with the word SUBSCRIBE as the subject.
To unsubscribe:  send mail to [EMAIL PROTECTED] 
                 with the word UNSUBSCRIBE as the subject.
To send to the list, send email to '[EMAIL PROTECTED]'. 
An archive is available at http://www.mail-archive.com/tcljava@scriptics.com

Reply via email to