You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Vasily Zakharov (JIRA)" <ji...@apache.org> on 2007/01/09 16:19:29 UTC

[jira] Commented: (HARMONY-2635) [classlib][swing] DirectColorModel(,,Integer.MIN_VALUE,) does not throw unspecified IAE

    [ https://issues.apache.org/jira/browse/HARMONY-2635?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12463314 ] 

Vasily Zakharov commented on HARMONY-2635:
------------------------------------------

I'll look into this issue.


> [classlib][swing] DirectColorModel(,,Integer.MIN_VALUE,) does not throw unspecified IAE
> ---------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2635
>                 URL: https://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: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira