United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-8005277 Regression in JDK 7 in Bidi implementation
JDK-8005277 : Regression in JDK 7 in Bidi implementation

Details
Type:
Bug
Submit Date:
2012-12-19
Status:
Closed
Updated Date:
2013-06-08
Project Name:
JDK
Resolved Date:
2012-12-31
Component:
core-libs
OS:
Sub-Component:
java.text
CPU:
Priority:
P2
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:
7u40 (b10)

Related Reports
Backport:

Sub Tasks

Description
The following shows a regression in the JDK 7 Bidi algorithm which is affecting FX.

import java.text.*;

public class biditest {
 public static void main(String args[]) {
   printRuns("\u05D0\u05D1\u05D2");
 }

 static void printRuns(String string) {
    Bidi bidi = new Bidi(string, Bidi.DIRECTION_LEFT_TO_RIGHT);
    for (int i = 0, count = bidi.getRunCount(); i < count; i++) {
        System.out.println("Run=" + i + " start=" + bidi.getRunStart(i) + " end=" + bidi.getRunLimit(i) + " level=" + bidi.getRunLevel(i));
    }
 }
}

 /java/re/jdk/6u32/promoted/all/b05/binaries/solaris-sparc/bin/java -client biditest
Run=0 start=0 end=3 level=1
rincewind 114%  /java/re/jdk/7/promoted/fcs/b148/binaries/solaris-sparc/bin/java biditest
Run=0 start=0 end=3 level=0
 /java/re/jdk/8/promoted/latest/binaries/solaris-sparc/bin/java -client biditest
Run=0 start=0 end=3 level=0

                                    

Comments
URL:   http://hg.openjdk.java.net/jdk7u/jdk7u-dev/jdk/rev/2249435f1293
User:  peytoia
Date:  2012-12-31 01:44:40 +0000

                                     
2012-12-31
URL:   http://hg.openjdk.java.net/jdk7u/jdk7u/jdk/rev/2249435f1293
User:  lana
Date:  2013-01-14 19:15:16 +0000

                                     
2013-01-14



Hardware and Software, Engineered to Work Together