summaryrefslogtreecommitdiff
path: root/java/openjdk6/files/icedtea/openjdk/7064279-fixup.patch
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2013-04-25 20:03:56 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2013-04-25 20:03:56 +0000
commit70c842246a7ffdd808630db4af137711eaa33346 (patch)
treefaaadf11511ea057e94e662bbf56a70751cbbbec /java/openjdk6/files/icedtea/openjdk/7064279-fixup.patch
parent- Update to 2.0.6 . (diff)
Add multiple security patches from IcedTea6 1.12.5.
http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2013-April/022985.html Obtained from: IcedTea Project
Diffstat (limited to 'java/openjdk6/files/icedtea/openjdk/7064279-fixup.patch')
-rw-r--r--java/openjdk6/files/icedtea/openjdk/7064279-fixup.patch71
1 files changed, 71 insertions, 0 deletions
diff --git a/java/openjdk6/files/icedtea/openjdk/7064279-fixup.patch b/java/openjdk6/files/icedtea/openjdk/7064279-fixup.patch
new file mode 100644
index 000000000000..9c90bae5ed0b
--- /dev/null
+++ b/java/openjdk6/files/icedtea/openjdk/7064279-fixup.patch
@@ -0,0 +1,71 @@
+diff -Nru openjdk.orig/jdk/src/share/classes/java/beans/Introspector.java openjdk/jdk/src/share/classes/java/beans/Introspector.java
+--- jdk/src/share/classes/java/beans/Introspector.java 2013-04-16 14:35:31.707279166 +0100
++++ jdk/src/share/classes/java/beans/Introspector.java 2013-04-16 14:39:23.715018865 +0100
+@@ -102,7 +102,7 @@
+ public final static int IGNORE_ALL_BEANINFO = 3;
+
+ // Static Caches to speed up introspection.
+- private static final WeakCache<Class<?>, Method[]> declaredMethodCache = new WeakCache<>();
++ private static final WeakCache<Class<?>, Method[]> declaredMethodCache = new WeakCache<Class<?>, Method[]>();
+
+ private Class beanClass;
+ private BeanInfo explicitBeanInfo;
+diff -Nru openjdk.orig/jdk/src/share/classes/java/beans/ThreadGroupContext.java openjdk/jdk/src/share/classes/java/beans/ThreadGroupContext.java
+--- jdk/src/share/classes/java/beans/ThreadGroupContext.java 2013-04-16 14:35:31.707279166 +0100
++++ jdk/src/share/classes/java/beans/ThreadGroupContext.java 2013-04-16 14:40:01.243623831 +0100
+@@ -25,9 +25,6 @@
+
+ package java.beans;
+
+-import com.sun.beans.finder.BeanInfoFinder;
+-import com.sun.beans.finder.PropertyEditorFinder;
+-
+ import java.awt.GraphicsEnvironment;
+ import java.util.HashMap;
+ import java.util.Map;
+@@ -42,7 +39,7 @@
+ */
+ final class ThreadGroupContext {
+
+- private static final Map<ThreadGroup, ThreadGroupContext> contexts = new WeakHashMap<>();
++ private static final Map<ThreadGroup, ThreadGroupContext> contexts = new WeakHashMap<ThreadGroup, ThreadGroupContext>();
+
+ /**
+ * Returns the appropriate {@code AppContext} for the caller,
+@@ -66,8 +63,6 @@
+ private volatile Boolean isGuiAvailable;
+
+ private Map<Class<?>, BeanInfo> beanInfoCache;
+- private BeanInfoFinder beanInfoFinder;
+- private PropertyEditorFinder propertyEditorFinder;
+
+
+ boolean isDesignTime() {
+@@ -99,7 +94,7 @@
+
+ BeanInfo putBeanInfo(Class<?> type, BeanInfo info) {
+ if (this.beanInfoCache == null) {
+- this.beanInfoCache = new WeakHashMap<>();
++ this.beanInfoCache = new WeakHashMap<Class<?>, BeanInfo>();
+ }
+ return this.beanInfoCache.put(type, info);
+ }
+@@ -116,18 +111,4 @@
+ }
+ }
+
+-
+- synchronized BeanInfoFinder getBeanInfoFinder() {
+- if (this.beanInfoFinder == null) {
+- this.beanInfoFinder = new BeanInfoFinder();
+- }
+- return this.beanInfoFinder;
+- }
+-
+- synchronized PropertyEditorFinder getPropertyEditorFinder() {
+- if (this.propertyEditorFinder == null) {
+- this.propertyEditorFinder = new PropertyEditorFinder();
+- }
+- return this.propertyEditorFinder;
+- }
+ }