On Fri, 14 Jul 2000, Larry W. Virden wrote:

> I just built and did a make test on the latest tcl java.  I get this
> error:
> 
> tcljava/JavaDefineClassCmd.test
> 
> 
> ==== java::defineclass-2.1 loading a class
> ==== Contents of test case:
> 
>     set file  [open [file join $javaload_full_path Test1Cmd.class]]
>     if {$system == "tclblend"} {
>         fconfigure $file -translation binary
>     }
>     set bytes [read $file]
>     close $file
>     set class [java::defineclass $bytes]
>     java::isnull $class
> 
> ==== Result was:
> 1
> ---- Result should have been:
> 0
> ---- java::defineclass-2.1 FAILED
> 
> 
> ==== java::defineclass-2.2 instantiating a loaded class
> ==== Contents of test case:
> 
>     set file  [open [file join $javaload_path Test2Cmd.class]]
>     if {$system == "tclblend"} {
>         fconfigure $file -translation binary
>     }
>     set bytes [read $file]
>     close $file
>     set class [java::defineclass $bytes]
>     set obj   [java::new Test2Cmd]
>     java::isnull $obj
> 
> ==== Test generated error:
> unknown class "Test2Cmd"


Both of these are bugs in the Sun JDK 1.2 JVM. I would tell
you to call Sun to complain but it is unlikely that will help.
I suggest you switch to the IBM JDK, they seem to actually
care about the problems their customers run into.

later
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