harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexei Zakharov (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-2635) [classlib][awt] DirectColorModel(,,Integer.MIN_VALUE,) does not throw unspecified IAE
Date Mon, 29 Jan 2007 12:11:49 GMT

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

Alexei Zakharov updated HARMONY-2635:
-------------------------------------

    Summary: [classlib][awt] DirectColorModel(,,Integer.MIN_VALUE,) does not throw unspecified
IAE  (was: [classlib][swing] DirectColorModel(,,Integer.MIN_VALUE,) does not throw unspecified
IAE)

> [classlib][awt] 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.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message