From 1d125bfa18f7363bf9c9887434c441acbde10862 Mon Sep 17 00:00:00 2001 From: Kai Kang Date: Mon, 11 Apr 2016 14:39:46 +0800 Subject: icedtea7-native: backport patch of jaxb to fix NullPointerException Backport patch of jaxb from https://java.net/projects/jaxb/sources/v2/revision/1864898 to fix NullPointerException. See https://java.net/jira/browse/JAXB-860 as well. Signed-off-by: Kai Kang Signed-off-by: Otavio Salvador --- .../jaxws_fix_NullPointerException.patch | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 recipes-core/icedtea/openjdk-7-03b147/jaxws_fix_NullPointerException.patch (limited to 'recipes-core/icedtea/openjdk-7-03b147') diff --git a/recipes-core/icedtea/openjdk-7-03b147/jaxws_fix_NullPointerException.patch b/recipes-core/icedtea/openjdk-7-03b147/jaxws_fix_NullPointerException.patch new file mode 100644 index 0000000..ba47036 --- /dev/null +++ b/recipes-core/icedtea/openjdk-7-03b147/jaxws_fix_NullPointerException.patch @@ -0,0 +1,21 @@ +Upstream-Status: Backport [https://java.net/projects/jaxb/sources/v2/revision/1864898] + +Backport patch of jaxb to fix NullPointerException issue. + +Signed-off-by: Kai Kang +--- +diff --git a/openjdk/jaxws/sources/jaxws_src/src/com/sun/xml/internal/bind/v2/runtime/ClassBeanInfoImpl.java b/openjdk/jaxws/sources/jaxws_src/src/com/sun/xml/internal/bind/v2/runtime/ClassBeanInfoImpl.java +index dc88d45..cc4f6e9 100644 +--- a/openjdk/jaxws/sources/jaxws_src/src/com/sun/xml/internal/bind/v2/runtime/ClassBeanInfoImpl.java ++++ b/openjdk/jaxws/sources/jaxws_src/src/com/sun/xml/internal/bind/v2/runtime/ClassBeanInfoImpl.java +@@ -187,7 +187,9 @@ public final class ClassBeanInfoImpl extends JaxBeanInfo implement + private void checkOverrideProperties(Property p) { + ClassBeanInfoImpl bi = this; + while ((bi = bi.superClazz) != null) { +- for (Property superProperty : bi.properties) { ++ Property[] props = bi.properties; ++ if (props == null) break; ++ for (Property superProperty : props) { + if (superProperty == null) break; + String spName = superProperty.getFieldName(); + if ((spName != null) && (spName.equals(p.getFieldName()))) { -- cgit v1.2.3-54-g00ecf