# HG changeset patch # User andrew # Date 1344344581 -3600 # Node ID 9d1bd58ef2da504795d548629372cfd55942ff46 # Parent d8234d725294f38ed027aa0fffbfe9ac80479e64 Apply xjc.patch to in-tree sources. diff -r d8234d725294 -r 9d1bd58ef2da patches/jaxws_src/xjc.patch --- a/patches/jaxws_src/xjc.patch Mon Aug 06 14:20:26 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 d8234d725294 -r 9d1bd58ef2da 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 Mon Aug 06 14:20:26 2012 +0100 +++ b/src/share/jaxws_classes/com/sun/tools/internal/xjc/reader/xmlschema/parser/SchemaConstraintChecker.java Tue Aug 07 14:03:01 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) {