You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "Jacob Danner (JIRA)" <xm...@xml.apache.org> on 2005/03/15 00:32:29 UTC
[jira] Assigned: (XMLBEANS-79) Code generation creates code that uses depricated functions...
[ http://issues.apache.org/jira/browse/XMLBEANS-79?page=history ]
Jacob Danner reassigned XMLBEANS-79:
------------------------------------
Assign To: Cezar Andrei (was: Jacob Danner)
This is still occuring. Other than an @deprecated tag, what is the problem with this issue?
> Code generation creates code that uses depricated functions...
> --------------------------------------------------------------
>
> Key: XMLBEANS-79
> URL: http://issues.apache.org/jira/browse/XMLBEANS-79
> Project: XMLBeans
> Type: Bug
> Components: Compiler
> Versions: Version 1.0.3
> Environment: all platforms
> Reporter: Walter Dorninger
> Assignee: Cezar Andrei
> Priority: Minor
>
> 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.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org