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