You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexei Zakharov (JIRA)" <ji...@apache.org> on 2007/01/29 13:11:49 UTC
[jira] Updated: (HARMONY-2635) [classlib][awt]
DirectColorModel(,,Integer.MIN_VALUE,) does not throw unspecified IAE
[ 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.