You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Denis Kishenko (JIRA)" <ji...@apache.org> on 2006/08/03 17:15:14 UTC

[jira] Updated: (HARMONY-1059) [classlib][text]compatibility: createLineBidi(-1, 1) expected IAE

     [ http://issues.apache.org/jira/browse/HARMONY-1059?page=all ]

Denis Kishenko updated HARMONY-1059:
------------------------------------

    Attachment: 1050-Bidi.patch

source patch

> [classlib][text]compatibility: createLineBidi(-1, 1) expected IAE
> -----------------------------------------------------------------
>
>                 Key: HARMONY-1059
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1059
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Denis Kishenko
>         Attachments: 1050-Bidi.patch
>
>
> RI throws IAE when input parameters of createLineBidi(int, int) are invalid while Harmony doesn't. 
> Spec ----------------------------------------------------------
> No throws 
> Test ------------------------------------------------------------
> import java.text.*;
> public class bug9414 {
>     public static void main(String[] args) {
>         new Bidi("str", 1).createLineBidi(-1, 1);
>     }
> }
> Output ---------------------------------------------------------
> RI
> java.lang.IllegalArgumentException: range -1 to 1 is invalid for paragraph of length 3
> 	at java.text.Bidi.createLineBidi(Bidi.java:286)
> 	at bug9414.main(bug9414.java:6)
> Harmony
> java.lang.RuntimeException: ICU Internal Error: 8
> 	at org.apache.harmony.text.BidiWrapper.ubidi_setLine(BidiWrapper.java)
> 	at java.text.Bidi.createLineBidi(Bidi.java:293)
> 	at bug9414.main(bug9414.java:6)

-- 
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