diff options
| -rw-r--r-- | recipes-core/icedtea/icedtea7-native.inc | 3 | ||||
| -rw-r--r-- | recipes-core/icedtea/openjdk-7-03b147/jaxws_fix_NullPointerException.patch | 21 |
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 | ||
| 38 | S = "${WORKDIR}/${ICEDTEA}" | 39 | S = "${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 | ||
| 159 | EXTRA_OEMAKE = ' \ | 162 | EXTRA_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 @@ | |||
| 1 | Upstream-Status: Backport [https://java.net/projects/jaxb/sources/v2/revision/1864898] | ||
| 2 | |||
| 3 | Backport patch of jaxb to fix NullPointerException issue. | ||
| 4 | |||
| 5 | Signed-off-by: Kai Kang <kai.kang@windriver.com> | ||
| 6 | --- | ||
| 7 | 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 | ||
| 8 | index 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()))) { | ||
