harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Denis Kishenko (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-2635) [classlib][swing] DirectColorModel(,,Integer.MIN_VALUE,) does not throw unspecified IAE
Date Tue, 12 Dec 2006 11:39:21 GMT
[classlib][swing] DirectColorModel(,,Integer.MIN_VALUE,) does not throw unspecified IAE
---------------------------------------------------------------------------------------

                 Key: HARMONY-2635
                 URL: http://issues.apache.org/jira/browse/HARMONY-2635
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Denis Kishenko


There is no mention of any exception in the specification for  DirectColorModel(int bits,int
rmask,int gmask,int bmask).
RI throws IllegalArgumentException if some argument=Integer.MIN_VALUE while Harmony does not.
Compatibility issue.

Test for reproducing:
import java.awt.*;
import java.awt.image.*;
public class test extends TestCase {      
    public void test1 () {         
        new DirectColorModel(6,2,Integer.MIN_VALUE,512);           
    }      
}


Output on Sun 1.5:
==================
.
Time: 0

OK (1 test)

Output on Harmony:
==================
.F
Time: 0.016
There was 1 failure:
1) test1(test)junit.framework.AssertionFailedError: IllegalArgumentException
sho
uld be thrown
        at test.test1(test.java:8)
        at java.lang.reflect.VMReflection.invokeMethod(Native Method)

FAILURES!!!
Tests run: 1,  Failures: 1,  Errors: 0


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message