You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by ma...@ameritrade.com on 2004/04/14 00:35:08 UTC

v1 XMLInputStream deprecation warnings

In v1, I'm not able to compile generated XmlBeans without deprecation warnings.
The following XMLInputStream-related methods cause the warnings: (shortened for
brevity)

MyXmlBean parse(XMLInputStream xis) {
    return (MyXmlBean) XmlBeans.getContextTypeLoader().parse( xis, type, null ); }

MyXmlBean parse(XMLInputStream xis, XmlOptions options){
    return (MyXmlBean) XmlBeans.getContextTypeLoader().parse( xis, type, options ); }

XMLInputStream newValidatingXMLInputStream(XMLInputStream xis) {
    return XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, null ); }

XMLInputStream newValidatingXMLInputStream(XMLInputStream xis, XmlOptions options) {
    return XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, options ); }

Shouldn't these generated methods also be deprecated?  Wouldn't this allow
compilation of generated code without warnings?  Then users would only get the
warning when trying to actually use the above generated methods.  Wouldn't this
be the preferred effect?

Thanks,
Matt


- ---------------------------------------------------------------------
To unsubscribe, e-mail:   xmlbeans-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-dev-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/