[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Savannah-hackers] Bug in Revision 1.3 of gnu/inet/nntp/NNTPConnection.j
From: |
bodo.weiss |
Subject: |
[Savannah-hackers] Bug in Revision 1.3 of gnu/inet/nntp/NNTPConnection.java |
Date: |
Wed, 28 Apr 2004 11:30:01 +0200 |
Hi,
I found a bug in gnu/inet/nntp/NNTPConnection.java:
The method listGroup uses the wrong constant in the first line of the
methods body
LIST_NEWSGROUPS = "LIST NEWSGROUPS"
LISTGROUP = "LISTGROUP"
Please snd me note about the status of this bug.
Greetings
Bodo Weiss
public ArticleNumberIterator listGroup(String group) throws IOException
{
// was StringBuffer buffer = new StringBuffer(LIST_NEWSGROUPS);
StringBuffer buffer = new StringBuffer(LISTGROUP);
if (group != null)
{
buffer.append(' ');
buffer.append(group);
}
send(buffer.toString());
StatusResponse response = parseResponse(read());
switch (response.status)
{
case GROUP_SELECTED:
ArticleNumberIterator ani = new ArticleNumberIterator(this);
pendingData = ani;
return ani;
default:
throw new NNTPException(response);
}
}
- [Savannah-hackers] Bug in Revision 1.3 of gnu/inet/nntp/NNTPConnection.java,
bodo.weiss <=