On Tue, 17 Oct 2000, Jens Schliephacke wrote:

> Good morning dear list!

Humm, I was just going to bed.

> I'm having a problem using the javax.mail API directly from tcl.
> I'm using tclblend 1.2.5 an I have to get this Java code done from tcl:
> 
> // Examine ALL system flags for this message
>  Flags flags = m.getFlags();
>  Flags.Flag[] sf = flags.getSystemFlags();
>  for (int i = 0; i < sf.length; i++) {
>         if (sf[i] == Flags.Flag.DELETED)
>             System.out.println("DELETED message");
> 
> All works fine, except accessing the inner class fields!
> [java::field javax.mail.Flags.Flag DELETED] does not work, neither does
> [java::field javax.mail.Flags Flag.DELETED].

I think you want to use:

java::field javax.mail.Flags\$Flag DELETED

It is a wacky hack that the Java designers decided to
throw into 1.1 so that they did not have to change the
VM spec. Rather ugly if you ask me.

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