You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2006/01/26 12:03:03 UTC
DO NOT REPLY [Bug 38400] New: - org.apache.commons.net.nntp.Article.getReferences() throws ClassCastException
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38400>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38400
Summary: org.apache.commons.net.nntp.Article.getReferences()
throws ClassCastException
Product: Commons
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Net
AssignedTo: commons-dev@jakarta.apache.org
ReportedBy: oliver.randschau@web.de
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.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 38400] - [net] org.apache.commons.net.nntp.Article.getReferences() throws ClassCastException
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38400>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38400
rwinston@eircom.net changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From rwinston@eircom.net 2006-01-28 15:16 -------
Thanks for the info. I have fixed the condition that caused the Exception.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 38400] - [net] org.apache.commons.net.nntp.Article.getReferences() throws ClassCastException
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38400>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38400
ebourg@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|org.apache.commons.net.nntp.|[net]
|Article.getReferences() |org.apache.commons.net.nntp.
|throws ClassCastException |Article.getReferences()
| |throws ClassCastException
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org