[8u-dev] Request for approval: 8160693: ScriptRunData.java uses bitwise AND instead of logical AND

Phil Race philip.race at oracle.com
Fri Jul 1 21:36:29 UTC 2016


Bug: https://bugs.openjdk.java.net/browse/JDK-8160693
jdk9 review + diff 
http://mail.openjdk.java.net/pipermail/2d-dev/2016-June/007128.html

backport to 8u is identical except for the file path :

diff --git a/src/share/classes/sun/font/ScriptRunData.java 
b/src/share/classes/sun/font/ScriptRunData.java
--- a/src/share/classes/sun/font/ScriptRunData.java
+++ b/src/share/classes/sun/font/ScriptRunData.java
@@ -44,7 +44,7 @@
          if (cp >= data[cache] && cp < data[cache+2]) {
              return data[cache+1];
          }
-        if (cp >= CHAR_START & cp < CHAR_LIMIT) {
+        if ((cp >= CHAR_START) && (cp < CHAR_LIMIT)) {
              int probe = dataPower;
              int index = 0;

-phil.


More information about the jdk8u-dev mailing list