Re: nntp client

Joseph Shraibman <[email protected]>
Newsgroups gmane.comp.java.classpath.extensions.javamail
Message-ID <[email protected]>
I had to do it in a few places:
imap/IMAPConnection.java
nntp/NNTPConnection.java
pop3/POP3Connection.java
smtp/SMTPConnection.java


Chris Burdess wrote:
> Joseph Shraibman wrote:
> 
>>>> javac -g -classpath ./classes:./source::: -d ./classes   
>>>> source/gnu/inet/smtp/ParameterList.java
>>>> Note: source/gnu/inet/smtp/ParameterList.java uses unchecked or  
>>>> unsafe  operations.
>>>> Note: Recompile with -Xlint:unchecked for details.
>>>> javac -g -classpath ./classes:./source::: -d ./classes   
>>>> source/gnu/inet/smtp/SMTPConnection.java
>>>> source/gnu/inet/smtp/SMTPConnection.java:632:   
>>>> createSaslClient(java.lang.String[],java.lang.String,java.lang.String 
>>>> ,j ava.lang.String,java.util.Map<java.lang.String,?  
>>>> >,javax.security.auth.callback.CallbackHandler) in   
>>>> javax.security.sasl.Sasl cannot be applied to   
>>>> (java.lang.String[],<nulltype>,java.lang.String,java.lang.String,java 
>>>> .u til.Properties,javax.security.auth.callback.CallbackHandler)
>>>>           Sasl.createSaslClient(m, null, "smtp",
>>>>               ^
>>>> Note: source/gnu/inet/smtp/SMTPConnection.java uses unchecked or   
>>>> unsafe operations.
>>>> Note: Recompile with -Xlint:unchecked for details.
>>>> 1 error
>>>
>>> I can't help you with this, as JDK 1.5 doesn't exist for my 
>>> platform.   If you resolve it please submit a patch.
> 
> 
>> The solution is to replace Properties with a HashMap
> 
> 
> I've done this and committed: it doesn't seem to cause any problems  
> with earlier SASL implementations.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.