view patches/8232643-pr3761.patch @ 3007:4c823521f1da

PR3761: OpenJDK 7.241 doesn't compile 2019-11-14 Andrew John Hughes <gnu_andrew@member.fsf.org> PR3761: OpenJDK 7.241 doesn't compile * Makefile.am: (ICEDTEA_PATCHES): Add local copy of patch, which will be removed when we upgrade to upstream 7u251. * NEWS: Updated. * patches/8232643-pr3761.patch: Fix missing type parameter in sun.nio.cs.ext.DoubleByteDecoder.
author Andrew John Hughes <gnu_andrew@member.fsf.org>
date Fri, 15 Nov 2019 04:38:01 +0000
parents
children
line wrap: on
line source

# HG changeset patch
# User mbalao
# Date 1571433044 10800
#      Fri Oct 18 18:10:44 2019 -0300
# Node ID 55de33c12fdcff9cc3fa391e9343a04d398c48e5
# Parent  ce5e37056409870413d49cce681049b711220849
8232643: Building error in jdk7u241 after 7068616
Reviewed-by: andrew

diff --git openjdk.orig/jdk/src/share/classes/sun/nio/cs/ext/DoubleByteDecoder.java openjdk/jdk/src/share/classes/sun/nio/cs/ext/DoubleByteDecoder.java
--- openjdk.orig/jdk/src/share/classes/sun/nio/cs/ext/DoubleByteDecoder.java
+++ openjdk/jdk/src/share/classes/sun/nio/cs/ext/DoubleByteDecoder.java
@@ -209,9 +209,9 @@
         if (bugLevel == null) {
             if (!sun.misc.VM.isBooted())
                 return false;
-            java.security.PrivilegedAction pa =
+            java.security.PrivilegedAction<String> pa =
                 new GetPropertyAction("sun.nio.cs.bugLevel");
-            String value = (String)AccessController.doPrivileged(pa);
+            String value = AccessController.doPrivileged(pa);
             bugLevel = (value != null) ? value : "";
         }
         return bugLevel.equals(bl);