You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Mark Hindess (JIRA)" <ji...@apache.org> on 2007/01/14 21:05:27 UTC
[jira] Resolved: (HARMONY-2743) [classlib][awt]
java.awt.image.Raster.createCompatibleWritableRaster() throws unspecified
IllegalArgumentException
[ https://issues.apache.org/jira/browse/HARMONY-2743?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Hindess resolved HARMONY-2743.
-----------------------------------
Resolution: Fixed
Assignee: Mark Hindess
Applied patches in r496120. The test is too verbose and the exception handling needs improving but I'll commit that separately. Please confirm they have been applied as expected.
> [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
> Assigned To: 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.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira