harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vasily Zakharov (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-2635) [classlib][swing] DirectColorModel(,,Integer.MIN_VALUE,) does not throw unspecified IAE
Date Fri, 12 Jan 2007 01:41:27 GMT

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

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

As it can be seen clearly, the problem actually occurs in PackedColorModel and should be fixed
there, probably in parseComponents() method.

I'm giving this up for now, hoping someone confident in AWT will figure out the proper way
to fix it.


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

        

Mime
View raw message