harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Khaschansky (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-2743) [classlib][awt] java.awt.image.Raster.createCompatibleWritableRaster() throws unspecified IllegalArgumentException
Date Fri, 15 Dec 2006 11:46:22 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-2743?page=all ]

Oleg Khaschansky updated HARMONY-2743:
--------------------------------------

    Attachment: harmony-2743.patch

patch

> [classlib][awt] java.awt.image.Raster.createCompatibleWritableRaster() throws unspecified
IllegalArgumentException
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2743
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2743
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Oleg Khaschansky
>            Priority: Minor
>         Attachments: harmony-2743.patch
>
>
> Harmony throws unspecified IllegalArgumentException for
> java.awt.image.Raster.createCompatibleWritableRaster(int w,int h)
> while RI throws specified RasterFormatException.
> The testcase:    
> public void test_createCompatibleWritableRaster() {
>         MultiPixelPackedSampleModel localMultiPixelPackedSampleModel =
>                 new MultiPixelPackedSampleModel(0, 5, 22, -1, -25, 40825);
>         Point localPoint = new Point();
>         Raster localRaster = Raster.createWritableRaster(localMultiPixelPackedSampleModel,localPoint);
>         try {
>             localRaster.createCompatibleWritableRaster(-32,8);
>             fail("Exception expected");
>         } catch (RasterFormatException expectedException) {
>             System.out.println(expectedException +" was thrown");
>         } catch (IllegalArgumentException expectedException) {
>             fail(expectedException +" was thrown");
>         }
>     }

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