Bug 22997 - Ignored BigInteger method return values in java.awt.image.IndexColorModel
Summary: Ignored BigInteger method return values in java.awt.image.IndexColorModel
Status: RESOLVED FIXED
Alias: None
Product: classpath
Classification: Unclassified
Component: classpath (show other bugs)
Version: unspecified
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-18 21:19 UTC by from-classpath
Modified: 2005-07-23 22:54 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description from-classpath 2005-06-18 21:19:00 UTC
In classpath-0.15:

In the isValid() method of the java.awt.image.IndexColorModel class,
the setBit() and subtract() methods are called on a
BitInteger (lines 469 and 470).  However, the return values
are not captured, meaning these method calls have no effect
(because BigIntegers are immutable).

Found by FindBugs: http://findbugs.sourceforge.net
Comment 1 from-classpath 2005-06-20 20:43:59 UTC
Thanks for the report.  This is fixed in CVS, by a patch that went in on 1-Jun-2005.