harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Imran Ghory (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-5087) [classlib][math] BigDecimal movePointLeft error
Date Wed, 07 Nov 2007 23:14:50 GMT
[classlib][math]  BigDecimal movePointLeft error
------------------------------------------------

                 Key: HARMONY-5087
                 URL: https://issues.apache.org/jira/browse/HARMONY-5087
             Project: Harmony
          Issue Type: Bug
            Reporter: Imran Ghory


System.out.println(BigDecimal.ONE.movePointLeft(Integer.MIN_VALUE)) causes an ArrayIndexOutOfBoundsException
to be thrown. RI throws ArithmeticException. Example code:

                try 
		{
			System.out.println(BigDecimal.ONE.movePointLeft(Integer.MIN_VALUE));
		}
		catch (java.lang.ArithmeticException e)
		{			
			System.out.println("Correct underflow");
		}
		catch (java.lang.Exception e)
		{
			System.out.println("Incorrect Exception:" + e);	
		}

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