Issue Details (XML | Word | Printable)

Key: NET-97
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Oliver Randschau
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Commons Net

[net] org.apache.commons.net.nntp.Article.getReferences() throws ClassCastException

Created: 26/Jan/06 08:03 PM   Updated: 03/Jan/08 07:39 PM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

Environment:
Operating System: All
Platform: All

Bugzilla Id: 38400


 Description  « Hide
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.



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Henri Yandell made changes - 16/May/06 10:05 AM
Field Original Value New Value
issue.field.bugzillaimportkey 38400 12342873
Henri Yandell made changes - 16/May/06 11:48 AM
Key COM-2721 NET-97
Affects Version/s unspecified [ 12311647 ]
Project Commons [ 12310458 ] Commons Net [ 12310487 ]
Assignee Jakarta Commons Developers Mailing List [ commons-dev@jakarta.apache.org ]
Component/s Net [ 12311127 ]
Henri Yandell made changes - 20/Sep/07 05:31 AM
Status Resolved [ 5 ] Closed [ 6 ]