changeset 122:0dc08d528c99 icedtea7-1.12

Add xjc patch from IcedTea7.
author andrew
date Sun, 15 Nov 2009 15:29:03 +0000
parents e647448814a9
children 45259ce29d39
files build.properties patches/jaxws_src/xjc.patch
diffstat 2 files changed, 20 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/build.properties	Sat Nov 14 00:22:37 2009 +0000
+++ b/build.properties	Sun Nov 15 15:29:03 2009 +0000
@@ -73,6 +73,9 @@
 # Where patches to drop bundle sources live
 patches.dir=patches
 
+# Patches to apply
+jaxws_src.patch.list=xjc.patch
+
 # Sanity information
 sanity.info= Sanity Settings:${line.separator}\
   ant.home=${ant.home}${line.separator}\
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/jaxws_src/xjc.patch	Sun Nov 15 15:29:03 2009 +0000
@@ -0,0 +1,17 @@
+--- src/com/sun/tools/internal/xjc/reader/xmlschema/parser/SchemaConstraintChecker.java.prev       2008-10-21 15:50:20.000000000 +0100
++++ src/com/sun/tools/internal/xjc/reader/xmlschema/parser/SchemaConstraintChecker.java    2008-10-21 15:57:37.000000000 +0100
+@@ -66,6 +66,14 @@
+ 
+         SchemaFactory sf = SchemaFactory.newInstance(W3C_XML_SCHEMA_NS_URI);
+         sf.setErrorHandler(errorFilter);
++        try {
++            // By default the SchemaFactory imposes a limit of 5000 on
++            // xsd:sequence maxOccurs if a SecurityManager is
++            // installed.  This breaks the specification of xjc,
++            // causing TCK failures.
++            sf.setProperty("http://apache.org/xml/properties/security-manager", null);
++        } catch (SAXException e) {
++        }
+         if( entityResolver != null ) {
+             sf.setResourceResolver(new LSResourceResolver() {
+                 public LSInput resolveResource(String type, String namespaceURI, String publicId, String systemId, String baseURI) {