commit-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[commit-cp] [bugs #9946] gnu/java/security/util/Prime.java ignores retur


From: anonymous
Subject: [commit-cp] [bugs #9946] gnu/java/security/util/Prime.java ignores return value of BigInteger methods
Date: Mon, 09 Aug 2004 17:20:16 -0400
User-agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-us) AppleWebKit/125.2 (KHTML, like Gecko) Safari/125.8

This mail is an automated notification from the bugs tracker
 of the project: classpath.




/**************************************************************************/
[bugs #9946] Full Item Snapshot:

URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=9946>
Project: classpath
Submitted by: 0
On: Mon 08/09/2004 at 21:15

Category:  None
Severity:  5 - Average
Resolution:  None
Assigned to:  None
Status:  Open
Platform Version:  None


Summary:  gnu/java/security/util/Prime.java ignores return value of BigInteger 
methods

Original Submission:  At 4 places in gnu/java/security/util/Prime.java, add is 
called on a BigInteger as though it mutates the BigInteger it is invoked on 
(lines 58, 63, 79 and 125). 

BigInteger is immutable. Thus, methods such as BigInteger.add return a new 
BigInteger, rather than mutating the BigInteger they are applied to. 

This bug was found with our static analysis tool for finding bugs in Java 
programs, FindBugs:
   http://findbugs.sourceforge.net/












For detailed info, follow this link:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=9946>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/







reply via email to

[Prev in Thread] Current Thread [Next in Thread]