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

Seán Coffey sean.coffey at oracle.com
Sat Jul 2 12:19:21 UTC 2016


Approved.

Regards,
Sean.

On 01/07/2016 22:36, Phil Race wrote:
> 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