BigInteger.bitLength() can return negative result

Dmitry Nadezhin Dmitry.Nadezhin at Sun.COM
Thu Oct 15 18:11:11 UTC 2009

>> d) All BigInteger constructors ensure that the bit length is no 
>> larger than 2^31 - 1;
> d) is arguably the most correct approach to address the problem.  
> However, I think the practical consequences of this flaw are low.
Nevertheless, may I use this unimportant flaw as a lesson of Java bug 
fixing ?


More information about the core-libs-dev mailing list