1.1 --- a/src/share/jaxws_classes/javax/xml/bind/util/JAXBSource.java Thu Aug 08 10:10:38 2013 -0700 1.2 +++ b/src/share/jaxws_classes/javax/xml/bind/util/JAXBSource.java Fri Aug 23 09:57:21 2013 +0100 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -41,6 +41,7 @@ 1.11 import javax.xml.bind.JAXBException; 1.12 import javax.xml.bind.Marshaller; 1.13 import javax.xml.transform.sax.SAXSource; 1.14 +import org.xml.sax.XMLFilter; 1.15 1.16 /** 1.17 * JAXP {@link javax.xml.transform.Source} implementation 1.18 @@ -210,7 +211,7 @@ 1.19 // SAX allows ContentHandler to be changed during the parsing, 1.20 // but JAXB doesn't. So this repeater will sit between those 1.21 // two components. 1.22 - private XMLFilterImpl repeater = new XMLFilterImpl(); 1.23 + private XMLFilter repeater = new XMLFilterImpl(); 1.24 1.25 public void setContentHandler(ContentHandler handler) { 1.26 repeater.setContentHandler(handler); 1.27 @@ -240,7 +241,7 @@ 1.28 // SAX events will be sent to the repeater, and the repeater 1.29 // will further forward it to an appropriate component. 1.30 try { 1.31 - marshaller.marshal( contentObject, repeater ); 1.32 + marshaller.marshal( contentObject, (XMLFilterImpl)repeater ); 1.33 } catch( JAXBException e ) { 1.34 // wrap it to a SAXException 1.35 SAXParseException se =