[Mono-bugs] [Bug 760434] BigInteger.Parse("1").ModInverse incorrectly throws ArithmeticException if modulus >0xFFFFFFFF
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu May 3 05:09:47 UTC 2012
https://bugzilla.novell.com/show_bug.cgi?id=760434
https://bugzilla.novell.com/show_bug.cgi?id=760434#c1
andy rosa <andyrosa at digitalforces.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |andyrosa at digitalforces.com
--- Comment #1 from andy rosa <andyrosa at digitalforces.com> 2012-05-03 05:09:47 UTC ---
Above code in Java (runs without error):
import java.util.*;
import java.lang.*;
import java.math.BigInteger;
class Main
{
public static void main (String[] args) throws java.lang.Exception
{
BigInteger x=new BigInteger("1");
BigInteger p=new BigInteger("4294967296");
System.out.println(x.modInverse(p));
}
}
Also available at http://ideone.com/UdpX2
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list