Moin;
I ran into a problem with the new JavaMail-beta1. I used the previous alpha version JavaMail 0.1 to send mail. The TO:-field had been filled with: msg(message.TO, InternetAddress) Worked pretty well. Now SUN changed it to: msg(message.RecipientType.TO, InternetAddress) They stated in the changes.txt: Added new RecipientType inner class, and changed getRecipients and setRecipients to use it. Changing my NetRexx source according to the docs (and like the provided sample), NetRexx throws the following error: 122 +++ mailmsg.setRecipients(Message.RecipientType.TO,myadr) +++ ^^^^^^^^^^^^^ +++ Error: The property 'RecipientType' cannot be found in class 'javax.mail.Message' or a superclass The sample compiles without errors, and works as expected. Any hints? TIA kp -- K.P.Kirchdoerfer Voice: +49 431 15479 24116 Kiel E-Mail: [hidden email] The Mission Is Terminated (TG 1982) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to [hidden email] with the following message in the body of the note unsubscribe ibm-netrexx <e-mail address> |
At 08:54 14/01/98 +0100, you wrote:
>Moin; > >I ran into a problem with the new JavaMail-beta1. NetRexx can't handle inner classes yet....I rank it as the most important thing for Mike to implement. >Added new RecipientType inner class, and changed getRecipients and >setRecipients to use it. >Changing my NetRexx source according to the docs (and like the >provided sample), NetRexx throws the following error: >122 +++ mailmsg.setRecipients(Message.RecipientType.TO,myadr) > +++ ^^^^^^^^^^^^^ > +++ Error: The property 'RecipientType' cannot be found in class >'javax.mail.Message' or a superclass > >The sample compiles without errors, and works as expected. > >Any hints? inner classes... dIon Gillard Sun Certified Java 1.1 Programmer Work: http://www.multitask.com.au NetRexx: http://www.multitask.com.au/netrexx ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to [hidden email] with the following message in the body of the note unsubscribe ibm-netrexx <e-mail address> |
dIon Gillard wrote:
> >I ran into a problem with the new JavaMail-beta1. > NetRexx can't handle inner classes yet....I rank it as the most important > thing for Mike to implement. > > >The sample compiles without errors, and works as expected. > > > >Any hints? > None I can think of, other than ask Mike to define a Nested keyword for > inner classes... Mike, how about this as an example of the syntax for inner classes: class Fred properties indirect i name sandwich = '' method eat(s=String) Say "eat the "sandwich nested class Topping properties indirect colour = 'Red' taste = 'Jam' method toString returns String return 'Topping has taste 'taste' and is 'colour' to look at.' end Topping -- Note this ends the nested class definition, so methods from here on in belong to Fred -- also note 'Topping' is optional method topMe(t=Fred.Topping) say t 'is used to fill me up' -- a class will always be a top level class class Barney method belch returns String return 'AARERGH!' I'd also suggest adding an optional end for the class statement so that you can do things like: class Fred properties shared x y end Fred Just for clarity, and consistency with nested classes. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to [hidden email] with the following message in the body of the note unsubscribe ibm-netrexx <e-mail address> |
Free forum by Nabble | Edit this page |