You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexey Petrenko (JIRA)" <ji...@apache.org> on 2007/07/16 13:21:04 UTC

[jira] Closed: (HARMONY-1658) [class][awt] BufferedImage.isTileWritable(int,int) throws IllegalArgumentException while Harmony throws ArrayIndexOutOfBoundsException

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

Alexey Petrenko closed HARMONY-1658.
------------------------------------

    Resolution: Fixed

The patch has been applied.
Thanks.

> [class][awt] BufferedImage.isTileWritable(int,int) throws IllegalArgumentException while Harmony throws ArrayIndexOutOfBoundsException
> --------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1658
>                 URL: https://issues.apache.org/jira/browse/HARMONY-1658
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Denis Kishenko
>            Assignee: Alexey Petrenko
>            Priority: Minor
>         Attachments: BufIm.patch, testBufIm.patch
>
>
> RI implementation of BufferedImage.isTileWritable(int,int) throws IllegalArgumentException while Harmony throws ArrayIndexOutOfBoundsException to follow spec.
> ========== Spec =============
> public boolean isTileWritable(int tileX, int tileY)
> Throws: 
> ArrayIndexOutOfBoundsException - if both tileX and tileY are not equal to 0
> ============ Test ================
> import java.awt.image.*;
> public class Test {
>     public static void main(String[] argv) {
>         BufferedImage img = new BufferedImage(10, 16, BufferedImage.TYPE_4BYTE_ABGR);
>         img.isTileWritable(1,1);
>     }
> }
> ========== RI output =============
> java.lang.IllegalArgumentException: Only 1 tile in image
>     at java.awt.image.BufferedImage.isTileWritable(BufferedImage.java:1526)
>     at Test.main(Test.java:6)
> ========= Harmony output ========
> java.lang.ArrayIndexOutOfBoundsException: Both tileX and tileY are not equal to 0
>     at java.awt.image.BufferedImage.isTileWritable(BufferedImage.java:603)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.