harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Hindess (JIRA)" <j...@apache.org>
Subject [jira] Closed: (HARMONY-2743) [classlib][awt] java.awt.image.Raster.createCompatibleWritableRaster() throws unspecified IllegalArgumentException
Date Wed, 17 Oct 2007 07:42:51 GMT

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

Mark Hindess closed HARMONY-2743.
---------------------------------


No response.  Assuming it is okay.


> [classlib][awt] java.awt.image.Raster.createCompatibleWritableRaster() throws unspecified
IllegalArgumentException
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2743
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2743
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Oleg Khaschansky
>            Assignee: Mark Hindess
>            Priority: Minor
>         Attachments: harmony-2743-test.patch, 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.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message