# HG changeset patch # User andrew # Date 1338500022 -3600 # Node ID 1de120f907240f9b341f4839d96e343f97ad25cf # Parent d8c192ea5d01e46b0751a3514a0dd003693f92fa Apply xjc.patch to actual sources now they are in the tree. diff -r d8c192ea5d01 -r 1de120f90724 patches/jaxws_src/xjc.patch --- a/patches/jaxws_src/xjc.patch Tue May 29 00:27:49 2012 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,17 +0,0 @@ ---- 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) { diff -r d8c192ea5d01 -r 1de120f90724 src/share/jaxws_classes/com/sun/tools/internal/xjc/reader/xmlschema/parser/SchemaConstraintChecker.java --- a/src/share/jaxws_classes/com/sun/tools/internal/xjc/reader/xmlschema/parser/SchemaConstraintChecker.java Tue May 29 00:27:49 2012 +0100 +++ b/src/share/jaxws_classes/com/sun/tools/internal/xjc/reader/xmlschema/parser/SchemaConstraintChecker.java Thu May 31 22:33:42 2012 +0100 @@ -67,6 +67,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) {