Vince, I took a quick look at the example you posted, but I am a little
confused about exactly where the problem is. The class you are trying
to load with java::defineclass seems to implement an interface that
you added to the tcl.lang package. Have you been able to recreate the
problem with a single class that does not extend, implement, or include
references to any classes other than the ones in the standard java.*
packages? If so could you post just that .java file so that I can try
loading that with java::defineclass?
Mo Dejong
Red Hat Inc.
On Sat, 22 Jan 2000, Vince Darley wrote:
> I'm only running on WinNT, and so far only with jdk1.2.2. This is with the
> latest tcljava sources from cvs too.
>
> Vince.
>
> -----Original Message-----
> From: Scott Redman
> To: [EMAIL PROTECTED]
> Sent: 1/22/00 4:09 PM
> Subject: [Tcl Java] Re: [Tcl Java] defineclass vs new problems
>
> defineclass is known to be broken with JDK 1.2.x on Solaris only,
> the bug in question does not occur with JDK 1.1.x on any platform
> or on JDK 1.2.x on any platform other than Solaris.
>
> Which JDK are you using and on which platform?
>
> -- Scott
>
>
>
> > Vince Darley wrote:
> >
> > I'm still running into problems trying to use 'java::defineclass
> $data' vs just using java::new. I have a very simple class
> > which just fails to be loaded with defineclass, but is very happy with
> new. I've been unable to track down exactly why it
> > fails: seems as if internally 'DefineClass' just returns null.
> >
> > If anyone would like to have a look at this, I've put together a
> simple test case at
> > ftp://ftp.ucsd.edu/pub/alpha/tcl/defineclassbug.zip (15k)
> >
> > This fails with both Jacl and Tclblend...
> >
> > has anyone else noticed problems with defineclass (even on simple
> classes which don't reference any other class not in
> > tcl.lang or java.lang)?
> >
> > Vince.
----------------------------------------------------------------
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