[prev in list] [next in list] [prev in thread] [next in thread]
List: xmlbeans-dev
Subject: [jira] Resolved: (XMLBEANS-79) Code generation creates code that
From: "Radu Preotiuc-Pietro (JIRA)" <xmlbeans-dev () xml ! apache ! org>
Date: 2008-12-10 1:44:44
Message-ID: 52874683.1228873484608.JavaMail.jira () brutus
[Download RAW message or body]
[ https://issues.apache.org/jira/browse/XMLBEANS-79?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel \
]
Radu Preotiuc-Pietro resolved XMLBEANS-79.
------------------------------------------
Resolution: Fixed
Fix Version/s: (was: TBD)
Version 2.4
Fixed as of XMLBeans 2.4.0
> Code generation creates code that uses depricated functions...
> --------------------------------------------------------------
>
> Key: XMLBEANS-79
> URL: https://issues.apache.org/jira/browse/XMLBEANS-79
> Project: XMLBeans
> Issue Type: Bug
> Components: Compiler
> Affects Versions: Version 1.0.3
> Environment: all platforms
> Reporter: Walter Dorninger
> Assignee: Radu Preotiuc-Pietro
> Priority: Minor
> Fix For: Version 2.4
>
>
> The classgenerator xml->java generates code which uses a depricated function \
> newXMLInputStream, also newValidatingXMLInputStream is depricated e.g.
> /*
> * XML Type: MessageBean
> * Namespace: http://www.ftisoft.com/assembly/definition
> * Java type: com.ftisoft.assembly.definition.MessageBean
> *
> * Automatically generated - do not modify.
> */
> package com.ftisoft.assembly.definition;
> /**
> * An XML MessageBean(@http://www.ftisoft.com/assembly/definition).
> *
> * This is a complex type.
> */
> public interface MessageBean extends com.ftisoft.assembly.definition.EJB
> {
> public static final org.apache.xmlbeans.SchemaType type = \
> (org.apache.xmlbeans.SchemaType)schema.system.s34F648EDCFA18686ABEE7C16A9595D26.TypeSystemHolder.typeSystem.resolveHandle("messagebean924etype");
>
> /**
> * Gets the "destinationType" element
> */
> com.ftisoft.assembly.definition.DestinationType.Enum getDestinationType();
>
> /**
> * Gets (as xml) the "destinationType" element
> */
> com.ftisoft.assembly.definition.DestinationType xgetDestinationType();
>
> /**
> * Sets the "destinationType" element
> */
> void setDestinationType(com.ftisoft.assembly.definition.DestinationType.Enum \
> destinationType);
> /**
> * Sets (as xml) the "destinationType" element
> */
> void xsetDestinationType(com.ftisoft.assembly.definition.DestinationType \
> destinationType);
> /**
> * A factory class with static methods for creating instances
> * of this type.
> */
>
> public static final class Factory
> {
> public static com.ftisoft.assembly.definition.MessageBean newInstance() {
> return (com.ftisoft.assembly.definition.MessageBean) \
> org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }
> public static com.ftisoft.assembly.definition.MessageBean \
> newInstance(org.apache.xmlbeans.XmlOptions options) { return \
> (com.ftisoft.assembly.definition.MessageBean) \
> org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); } \
> public static com.ftisoft.assembly.definition.MessageBean parse(java.lang.String \
> s) throws org.apache.xmlbeans.XmlException { return \
> (com.ftisoft.assembly.definition.MessageBean) \
> org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( s, type, null ); }
> public static com.ftisoft.assembly.definition.MessageBean parse(java.lang.String s, \
> org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException { \
> return (com.ftisoft.assembly.definition.MessageBean) \
> org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( s, type, options ); }
> public static com.ftisoft.assembly.definition.MessageBean parse(java.io.File f) \
> throws org.apache.xmlbeans.XmlException, java.io.IOException { return \
> (com.ftisoft.assembly.definition.MessageBean) \
> org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( f, type, null ); }
> public static com.ftisoft.assembly.definition.MessageBean parse(java.io.File f, \
> org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, \
> java.io.IOException { return (com.ftisoft.assembly.definition.MessageBean) \
> org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( f, type, options ); }
> public static com.ftisoft.assembly.definition.MessageBean parse(java.net.URL u) \
> throws org.apache.xmlbeans.XmlException, java.io.IOException { return \
> (com.ftisoft.assembly.definition.MessageBean) \
> org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, null ); }
> public static com.ftisoft.assembly.definition.MessageBean parse(java.net.URL u, \
> org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, \
> java.io.IOException { return (com.ftisoft.assembly.definition.MessageBean) \
> org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, options ); }
> public static com.ftisoft.assembly.definition.MessageBean parse(java.io.InputStream \
> is) throws org.apache.xmlbeans.XmlException, java.io.IOException { return \
> (com.ftisoft.assembly.definition.MessageBean) \
> org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, null ); }
> public static com.ftisoft.assembly.definition.MessageBean parse(java.io.InputStream \
> is, org.apache.xmlbeans.XmlOptions options) throws \
> org.apache.xmlbeans.XmlException, java.io.IOException { return \
> (com.ftisoft.assembly.definition.MessageBean) \
> org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, options ); }
> public static com.ftisoft.assembly.definition.MessageBean parse(java.io.Reader r) \
> throws org.apache.xmlbeans.XmlException, java.io.IOException { return \
> (com.ftisoft.assembly.definition.MessageBean) \
> org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, null ); }
> public static com.ftisoft.assembly.definition.MessageBean parse(java.io.Reader r, \
> org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, \
> java.io.IOException { return (com.ftisoft.assembly.definition.MessageBean) \
> org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, options ); }
> public static com.ftisoft.assembly.definition.MessageBean parse(org.w3c.dom.Node \
> node) throws org.apache.xmlbeans.XmlException { return \
> (com.ftisoft.assembly.definition.MessageBean) \
> org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, null ); }
> public static com.ftisoft.assembly.definition.MessageBean parse(org.w3c.dom.Node \
> node, org.apache.xmlbeans.XmlOptions options) throws \
> org.apache.xmlbeans.XmlException { return \
> (com.ftisoft.assembly.definition.MessageBean) \
> org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, options ); } \
> public static com.ftisoft.assembly.definition.MessageBean \
> parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws \
> org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException \
> { return (com.ftisoft.assembly.definition.MessageBean) \
> org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, null ); }
> public static com.ftisoft.assembly.definition.MessageBean \
> parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis, \
> org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, \
> org.apache.xmlbeans.xml.stream.XMLStreamException { return \
> (com.ftisoft.assembly.definition.MessageBean) \
> org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, options ); }
> public static org.apache.xmlbeans.xml.stream.XMLInputStream \
> newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis) \
> throws org.apache.xmlbeans.XmlException, \
> org.apache.xmlbeans.xml.stream.XMLStreamException { return \
> org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( \
> xis, type, null ); }
> public static org.apache.xmlbeans.xml.stream.XMLInputStream \
> newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis, \
> org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, \
> org.apache.xmlbeans.xml.stream.XMLStreamException { return \
> org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( \
> xis, type, options ); }
> private Factory() { } // No instance of this class allowed
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic