summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKai Kang <kai.kang@windriver.com>2016-04-11 14:39:46 +0800
committerOtavio Salvador <otavio@ossystems.com.br>2016-04-11 08:07:26 -0300
commit1d125bfa18f7363bf9c9887434c441acbde10862 (patch)
tree1941c6ed93523c85d9f16129390005d41fc76b8d
parentefc3daa7526a5ae5aad24a0f777d2274aab3d5c3 (diff)
downloadmeta-java-1d125bfa18f7363bf9c9887434c441acbde10862.tar.gz
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 <kai.kang@windriver.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
-rw-r--r--recipes-core/icedtea/icedtea7-native.inc3
-rw-r--r--recipes-core/icedtea/openjdk-7-03b147/jaxws_fix_NullPointerException.patch21
2 files changed, 24 insertions, 0 deletions
diff --git a/recipes-core/icedtea/icedtea7-native.inc b/recipes-core/icedtea/icedtea7-native.inc
index cb6b5d3..0ffe5d5 100644
--- a/recipes-core/icedtea/icedtea7-native.inc
+++ b/recipes-core/icedtea/icedtea7-native.inc
@@ -33,6 +33,7 @@ SRC_URI = " \
33 ${ICEDTEA_PATCHES} \ 33 ${ICEDTEA_PATCHES} \
34 ${OPENJDK_PATCHES} \ 34 ${OPENJDK_PATCHES} \
35 file://allow-headless-build.patch;striplevel=0 \ 35 file://allow-headless-build.patch;striplevel=0 \
36 file://jaxws_fix_NullPointerException.patch;apply=no \
36 " 37 "
37 38
38S = "${WORKDIR}/${ICEDTEA}" 39S = "${WORKDIR}/${ICEDTEA}"
@@ -154,6 +155,8 @@ do_configure_append() {
154 done 155 done
155 ${POST_CONFIGURE_CLEAN_X11} 156 ${POST_CONFIGURE_CLEAN_X11}
156 oe_runmake patch-boot 157 oe_runmake patch-boot
158
159 patch -p1 < ${WORKDIR}/jaxws_fix_NullPointerException.patch
157} 160}
158 161
159EXTRA_OEMAKE = ' \ 162EXTRA_OEMAKE = ' \
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 @@
1Upstream-Status: Backport [https://java.net/projects/jaxb/sources/v2/revision/1864898]
2
3Backport patch of jaxb to fix NullPointerException issue.
4
5Signed-off-by: Kai Kang <kai.kang@windriver.com>
6---
7diff --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
8index dc88d45..cc4f6e9 100644
9--- a/openjdk/jaxws/sources/jaxws_src/src/com/sun/xml/internal/bind/v2/runtime/ClassBeanInfoImpl.java
10+++ b/openjdk/jaxws/sources/jaxws_src/src/com/sun/xml/internal/bind/v2/runtime/ClassBeanInfoImpl.java
11@@ -187,7 +187,9 @@ public final class ClassBeanInfoImpl<BeanT> extends JaxBeanInfo<BeanT> implement
12 private void checkOverrideProperties(Property p) {
13 ClassBeanInfoImpl bi = this;
14 while ((bi = bi.superClazz) != null) {
15- for (Property superProperty : bi.properties) {
16+ Property[] props = bi.properties;
17+ if (props == null) break;
18+ for (Property superProperty : props) {
19 if (superProperty == null) break;
20 String spName = superProperty.getFieldName();
21 if ((spName != null) && (spName.equals(p.getFieldName()))) {