You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Oleg Khaschansky (JIRA)" <ji...@apache.org> on 2006/12/15 12:46:22 UTC

[jira] Updated: (HARMONY-2743) [classlib][awt] java.awt.image.Raster.createCompatibleWritableRaster() throws unspecified IllegalArgumentException

     [ 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