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/23 19:14:49 UTC
[jira] Closed: (HARMONY-2774) [classlib][awt] Compatibility:
java.awt.image.Raster.createInterleavedRaster(int dataType,int w,int h,int
bands,Point location) throws RasterFormatException but RI throws
NegativeArraySizeException
[ https://issues.apache.org/jira/browse/HARMONY-2774?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexei Zakharov closed HARMONY-2774.
------------------------------------
Resolution: Won't Fix
> [classlib][awt] Compatibility: java.awt.image.Raster.createInterleavedRaster(int dataType,int w,int h,int bands,Point location) throws RasterFormatException but RI throws NegativeArraySizeException
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: HARMONY-2774
> URL: https://issues.apache.org/jira/browse/HARMONY-2774
> Project: Harmony
> Issue Type: Bug
> Components: Non-bug differences from RI
> Reporter: Oleg Khaschansky
> Assigned To: Alexei Zakharov
> Priority: Minor
>
> Harmony throws specified RasterFormatException for createInterleavedRaster(int dataType,int w,int h,int bands,Point location) but RI throws unspecified
> NegativeArraySizeException. I'd suggest to treat this as a non-bug difference from RI.
> ------------------------------------------------------------------------------
> import junit.framework.TestCase;
> import java.awt.*;
> import java.awt.image.*;
> public class Test extends TestCase {
> public void testcase() {
> try {
> Raster.createInterleavedRaster(0,6,-3,1, new Point());
> fail("Exception expected");
> } catch (NegativeArraySizeException expectedException) {
> System.out.println(expectedException +" was thrown");
> } catch (RasterFormatException expectedException) {
> fail(expectedException +" was thrown");
> }
> }
> }
> ------------------------------------------------------------------------------
> Harmony:
> junit.framework.AssertionFailedError: java.awt.image.RasterFormatException: w or h is less than or equal to zero was thrown
> at java.awt.image.RasterTest.testcase(RasterTest.java:46)
> at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:25)
> RI:
> java.lang.NegativeArraySizeException: allocLargeArray was thrown
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.