--- ws-jaxme/src/jaxme/org/apache/ws/jaxme/impl/JMMarshallerImpl.java.orig 2008-07-08 11:31:43.000000000 -0400 +++ ws-jaxme/src/jaxme/org/apache/ws/jaxme/impl/JMMarshallerImpl.java 2008-07-09 05:54:23.000000000 -0400 @@ -21,16 +21,22 @@ import java.io.OutputStreamWriter; import java.io.UnsupportedEncodingException; import java.io.Writer; +import java.io.File; import javax.xml.bind.JAXBException; import javax.xml.bind.MarshalException; import javax.xml.bind.Marshaller; import javax.xml.bind.PropertyException; +import javax.xml.bind.attachment.AttachmentMarshaller; +import javax.xml.bind.annotation.adapters.XmlAdapter; import javax.xml.namespace.QName; import javax.xml.transform.Result; import javax.xml.transform.dom.DOMResult; import javax.xml.transform.sax.SAXResult; import javax.xml.transform.stream.StreamResult; +import javax.xml.stream.XMLStreamWriter; +import javax.xml.stream.XMLEventWriter; +import javax.xml.validation.Schema; import org.apache.ws.jaxme.*; import org.apache.ws.jaxme.JMElement; @@ -430,4 +436,55 @@ public Node getNode(java.lang.Object contentTree) throws JAXBException { throw new UnsupportedOperationException("JaxMe doesn't support live DOM views"); } + + +// added to support JDK6 + + public void marshal(Object jaxbElement, File output) throws JAXBException { + throw new UnsupportedOperationException(); + } + + public void marshal(Object jaxbElement, XMLStreamWriter writer) throws JAXBException { + throw new UnsupportedOperationException(); + } + + public void marshal(Object jaxbElement, XMLEventWriter writer) throws JAXBException { + throw new UnsupportedOperationException(); + } + + public void setAdapter(XmlAdapter adapter) { + throw new UnsupportedOperationException(); + } + + public void setAdapter(Class type, XmlAdapter adapter) { + throw new UnsupportedOperationException(); + } + + public XmlAdapter getAdapter(Class type) { + throw new UnsupportedOperationException(); + } + + public void setAttachmentMarshaller(AttachmentMarshaller am) { + throw new UnsupportedOperationException(); + } + + public AttachmentMarshaller getAttachmentMarshaller() { + throw new UnsupportedOperationException(); + } + + public void setSchema(Schema schema) { + throw new UnsupportedOperationException(); + } + + public Schema getSchema() { + throw new UnsupportedOperationException(); + } + + public void setListener(Listener listener) { + throw new UnsupportedOperationException(); + } + + public Listener getListener() { + throw new UnsupportedOperationException(); + } } --- ws-jaxme/src/jaxme/org/apache/ws/jaxme/impl/JMUnmarshallerImpl.java.orig 2008-07-08 11:34:58.000000000 -0400 +++ ws-jaxme/src/jaxme/org/apache/ws/jaxme/impl/JMUnmarshallerImpl.java 2008-07-09 05:52:39.000000000 -0400 @@ -26,6 +26,10 @@ import javax.xml.bind.JAXBException; import javax.xml.bind.UnmarshalException; import javax.xml.bind.UnmarshallerHandler; +import javax.xml.bind.JAXBElement; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.attachment.AttachmentUnmarshaller; +import javax.xml.bind.annotation.adapters.XmlAdapter; import javax.xml.parsers.ParserConfigurationException; import javax.xml.parsers.SAXParser; import javax.xml.parsers.SAXParserFactory; @@ -33,6 +37,9 @@ import javax.xml.transform.dom.DOMSource; import javax.xml.transform.sax.SAXSource; import javax.xml.transform.stream.StreamSource; +import javax.xml.stream.XMLStreamReader; +import javax.xml.stream.XMLEventReader; +import javax.xml.validation.Schema; import org.apache.ws.jaxme.JMUnmarshaller; import org.apache.ws.jaxme.util.DOMSerializer; @@ -177,4 +184,71 @@ public UnmarshallerHandler getUnmarshallerHandler() { return new JMUnmarshallerHandlerImpl(this); } + + +// added to support JDK6 + + public Object unmarshal(Reader reader) throws JAXBException { + throw new UnsupportedOperationException(); + } + + public JAXBElement unmarshal(Node node, Class declaredType) throws JAXBException { + throw new UnsupportedOperationException(); + } + + public JAXBElement unmarshal(Source source, Class declaredType) throws JAXBException { + throw new UnsupportedOperationException(); + } + + public Object unmarshal(XMLStreamReader reader) throws JAXBException { + throw new UnsupportedOperationException(); + } + + public JAXBElement unmarshal(XMLStreamReader reader, Class declaredType) throws JAXBException { + throw new UnsupportedOperationException(); + } + + public Object unmarshal(XMLEventReader reader) throws JAXBException { + throw new UnsupportedOperationException(); + } + + public JAXBElement unmarshal(XMLEventReader reader, Class declaredType) throws JAXBException { + throw new UnsupportedOperationException(); + } + + public void setSchema(Schema schema) { + throw new UnsupportedOperationException(); + } + + public Schema getSchema() { + throw new UnsupportedOperationException(); + } + + public void setAdapter(XmlAdapter adapter) { + throw new UnsupportedOperationException(); + } + + public void setAdapter(Class type, XmlAdapter adapter) { + throw new UnsupportedOperationException(); + } + + public XmlAdapter getAdapter(Class type) { + throw new UnsupportedOperationException(); + } + + public void setAttachmentUnmarshaller(AttachmentUnmarshaller au) { + throw new UnsupportedOperationException(); + } + + public AttachmentUnmarshaller getAttachmentUnmarshaller() { + throw new UnsupportedOperationException(); + } + + public void setListener(Listener listener) { + throw new UnsupportedOperationException(); + } + + public Listener getListener() { + throw new UnsupportedOperationException(); + } }