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/09 12:41:13 UTC
[jira] Created: (HARMONY-1116) [classlib][text] Bidi.getLength()
result differs from RI when flag > 61
[classlib][text] Bidi.getLength() result differs from RI when flag > 61
-----------------------------------------------------------------------
Key: HARMONY-1116
URL: http://issues.apache.org/jira/browse/HARMONY-1116
Project: Harmony
Issue Type: Bug
Components: Non-bug differences from RI
Reporter: Denis Kishenko
RI returns 0 for java.text.Bidi.getLength() if object was created via Bidi(String paragraph, int flags) with flag>61 like below:
Bidi bd = new Bidi("Java is the best", 62);
>From the specification for Bidi constructor:
flags - a collection of flags that control the algorithm. The algorithm
understands the flags DIRECTION_LEFT_TO_RIGHT, DIRECTION_RIGHT_TO_LEFT,
DIRECTION_DEFAULT_LEFT_TO_RIGHT, and DIRECTION_DEFAULT_RIGHT_TO_LEFT.
Other values are reserved.
------------------------- Test ----------------------------------
import java.text.*;
public class bug9383 {
public static void main (String[] args) {
try {
Bidi bd = new Bidi("Java is the best", 62);
System.out.println("len="+bd.getLength());
} catch (Exception e) {
e.printStackTrace();
}
}
}
---------------------------- Output -------------------------------------------
RI
len=0
Harmony
len=16
--
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
[jira] Commented: (HARMONY-1116) [classlib][text] Bidi.getLength()
result differs from RI when flag > 61
Posted by "Denis Kishenko (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-1116?page=comments#action_12426898 ]
Denis Kishenko commented on HARMONY-1116:
-----------------------------------------
Another test for Bidi.baseIsLeftToRight()
------------------------------------- Test ---------------------------------------
import java.text.*;
public class test {
public static void main(String[] args) {
try {
for( int i=0; i<10; i++ ){
System.out.println("baseIsLeftToRight="+i+" "+(new
Bidi("0", i)).baseIsLeftToRight());
}
} catch (Exception e) {
e.printStackTrace();
}
}
}
------------------------------------- Output ---------------------------------------
Output on RI:
flag=0 true
flag=1 false
flag=2 true
flag=3 true
flag=4 true
flag=5 true
flag=6 true
flag=7 true
flag=8 true
flag=9 true
Output on Harmony +j9:
flag=0 true
flag=1 false
flag=2 true
flag=3 false
flag=4 true
flag=5 false
flag=6 true
flag=7 false
flag=8 true
flag=9 false
> [classlib][text] Bidi.getLength() result differs from RI when flag > 61
> -----------------------------------------------------------------------
>
> Key: HARMONY-1116
> URL: http://issues.apache.org/jira/browse/HARMONY-1116
> Project: Harmony
> Issue Type: Bug
> Components: Non-bug differences from RI
> Reporter: Denis Kishenko
>
> RI returns 0 for java.text.Bidi.getLength() if object was created via Bidi(String paragraph, int flags) with flag>61 like below:
> Bidi bd = new Bidi("Java is the best", 62);
> From the specification for Bidi constructor:
> flags - a collection of flags that control the algorithm. The algorithm
> understands the flags DIRECTION_LEFT_TO_RIGHT, DIRECTION_RIGHT_TO_LEFT,
> DIRECTION_DEFAULT_LEFT_TO_RIGHT, and DIRECTION_DEFAULT_RIGHT_TO_LEFT.
> Other values are reserved.
> ------------------------- Test ----------------------------------
> import java.text.*;
> public class bug9383 {
> public static void main (String[] args) {
> try {
> Bidi bd = new Bidi("Java is the best", 62);
> System.out.println("len="+bd.getLength());
> } catch (Exception e) {
> e.printStackTrace();
> }
> }
> }
> ---------------------------- Output -------------------------------------------
> RI
> len=0
> Harmony
> len=16
--
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
[jira] Commented: (HARMONY-1116) [classlib][text] Bidi.getLength()
result differs from RI when flag > 61
Posted by "Tony Wu (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-1116?page=comments#action_12434580 ]
Tony Wu commented on HARMONY-1116:
----------------------------------
it would be closed according disscussion on http://www.mail-archive.com/harmony-dev@incubator.apache.org/msg11651.html
> [classlib][text] Bidi.getLength() result differs from RI when flag > 61
> -----------------------------------------------------------------------
>
> Key: HARMONY-1116
> URL: http://issues.apache.org/jira/browse/HARMONY-1116
> Project: Harmony
> Issue Type: Bug
> Components: Non-bug differences from RI
> Reporter: Denis Kishenko
>
> RI returns 0 for java.text.Bidi.getLength() if object was created via Bidi(String paragraph, int flags) with flag>61 like below:
> Bidi bd = new Bidi("Java is the best", 62);
> From the specification for Bidi constructor:
> flags - a collection of flags that control the algorithm. The algorithm
> understands the flags DIRECTION_LEFT_TO_RIGHT, DIRECTION_RIGHT_TO_LEFT,
> DIRECTION_DEFAULT_LEFT_TO_RIGHT, and DIRECTION_DEFAULT_RIGHT_TO_LEFT.
> Other values are reserved.
> ------------------------- Test ----------------------------------
> import java.text.*;
> public class bug9383 {
> public static void main (String[] args) {
> try {
> Bidi bd = new Bidi("Java is the best", 62);
> System.out.println("len="+bd.getLength());
> } catch (Exception e) {
> e.printStackTrace();
> }
> }
> }
> ---------------------------- Output -------------------------------------------
> RI
> len=0
> Harmony
> len=16
--
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
[jira] Closed: (HARMONY-1116) [classlib][text] Bidi.getLength()
result differs from RI when flag > 61
Posted by "Paulex Yang (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-1116?page=all ]
Paulex Yang closed HARMONY-1116.
--------------------------------
Resolution: Fixed
Verified in dev-list as Non-Bug Difference with RI.
> [classlib][text] Bidi.getLength() result differs from RI when flag > 61
> -----------------------------------------------------------------------
>
> Key: HARMONY-1116
> URL: http://issues.apache.org/jira/browse/HARMONY-1116
> Project: Harmony
> Issue Type: Bug
> Components: Non-bug differences from RI
> Reporter: Denis Kishenko
>
> RI returns 0 for java.text.Bidi.getLength() if object was created via Bidi(String paragraph, int flags) with flag>61 like below:
> Bidi bd = new Bidi("Java is the best", 62);
> From the specification for Bidi constructor:
> flags - a collection of flags that control the algorithm. The algorithm
> understands the flags DIRECTION_LEFT_TO_RIGHT, DIRECTION_RIGHT_TO_LEFT,
> DIRECTION_DEFAULT_LEFT_TO_RIGHT, and DIRECTION_DEFAULT_RIGHT_TO_LEFT.
> Other values are reserved.
> ------------------------- Test ----------------------------------
> import java.text.*;
> public class bug9383 {
> public static void main (String[] args) {
> try {
> Bidi bd = new Bidi("Java is the best", 62);
> System.out.println("len="+bd.getLength());
> } catch (Exception e) {
> e.printStackTrace();
> }
> }
> }
> ---------------------------- Output -------------------------------------------
> RI
> len=0
> Harmony
> len=16
--
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