commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jojo lalpin (JIRA)" <j...@apache.org>
Subject [jira] Issue Comment Edited: (NET-298) Article numbers should be treated as LONG instead of INT in NNTP
Date Sun, 08 Nov 2009 10:35:32 GMT

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

jojo lalpin edited comment on NET-298 at 11/8/09 10:34 AM:
-----------------------------------------------------------

Please find nntp files modified and a text file with all modifications done by file.

Modifications are : 
	Change variables related to article number and article count type from int to long
	Functions : 
		Integer.toString() in Long.toString()
		Integer.parseInt() in Long.parseLong()

Modified files are : 

	Article.java
	ArticlePointer.java
	NewsgroupInfo.java
	NNTP.java
	NNTPClient.java

It seems to work, at least newsgroup listing is ok now.





      was (Author: jojolalpin):
    Please find nntp files modified and a text file with all modifications done by file.

Modifications are : 
	Change variables related to article number and article count type from int to long
	Functions : 
		Integer.toString() in Long.toString()
		Integer.parseInt() in Long.parseLong()

Modified files are : 

	Article.java
	ArticlePointer.java
	NewsgroupInfo.java
	NNTP.java
	NNTPClient.java

I still  have not checked if this work but as I am a newbie in Java if it fails I won't go
further (but I will tell it).
At least the text file give all locations where I think modifications should be done.




  
> Article numbers should be treated as LONG instead of INT in NNTP
> ----------------------------------------------------------------
>
>                 Key: NET-298
>                 URL: https://issues.apache.org/jira/browse/NET-298
>             Project: Commons Net
>          Issue Type: Bug
>    Affects Versions: 2.0
>            Reporter: jojo lalpin
>            Priority: Minor
>         Attachments: nntp_modifications.zip
>
>
> When getting list of newsgroups, articles number are beyond int limit :
> here is server's reply about alt.binaries.boneless (one of the biggest of alt.binaries
hierarchy) :
> alt.binaries.boneless 2705422467 1662764743 y
> As article number if often used, that's a lot of minor changes.

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