commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ken Toole (JIRA)" <j...@apache.org>
Subject [jira] Commented: (NET-97) [net] org.apache.commons.net.nntp.Article.getReferences() throws ClassCastException
Date Thu, 03 Jan 2008 19:39:34 GMT

    [ https://issues.apache.org/jira/browse/NET-97?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12555651#action_12555651
] 

Ken Toole commented on NET-97:
------------------------------

the 1.4.1 release still appears to have this issue with the unsupported cast.  What version
contains this fix?

> [net] org.apache.commons.net.nntp.Article.getReferences() throws ClassCastException
> -----------------------------------------------------------------------------------
>
>                 Key: NET-97
>                 URL: https://issues.apache.org/jira/browse/NET-97
>             Project: Commons Net
>          Issue Type: Bug
>         Environment: Operating System: All
> Platform: All
>            Reporter: Oliver Randschau
>
> Hello,
> org.apache.commons.net.nntp.Article.getReferences()throws a ClassCastException 
> if there exist references (added by addReference).
> return (String[]) list.toArray(); contains an unsupported cast operation
>  Object[] -> String[]
> Secondly:
> int terminator = references.toString().indexOf(':');
> StringTokenizer st =
> new StringTokenizer(references.substring( terminator), "\t");
> lets the first reference start with ":" which is not expected.
> best Regards,
>   Oliver.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message