[jira] [Resolved] (AXIS2-6031) xmlbeans generator generates methods with @deprecated in javadoc only, but not marked with @Deprecated annotation

"Robert Lazarski (Jira)" <[email protected]>
Newsgroups gmane.text.xml.axis.devel
Message-ID <[email protected]>
     [ https://issues.apache.org/jira/browse/AXIS2-6031?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Lazarski resolved AXIS2-6031.
------------------------------------
    Resolution: Fixed

The org.apache.xmlbeans.xml.stream.XMLInputStream API and all
  associated newValidatingXMLInputStream() methods have been completely
  removed from XMLBeans 5.x. Since Axis2 now uses XMLBeans 5.3.0, these
  deprecated methods are no longer generated, eliminating the [dep-ann]
  compiler warnings. No Axis2 code changes were needed.


> xmlbeans generator generates methods with @deprecated in javadoc only, but not marked with @Deprecated annotation
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-6031
>                 URL: https://issues.apache.org/jira/browse/AXIS2-6031
>             Project: Axis2
>          Issue Type: Bug
>            Reporter: Peter Butkovic
>            Priority: Major
>             Fix For: 2.0.1
>
>
> using the xmlbeans generator in axis2 (having wsdl as source, generating respective classes) results in classes having methods like:
> {code:java}
> /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
> 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 ); } {code}
> this needs also @Deprecated annotation. Otherwise my compile log is flooded with warnings:
> {code:java}
> warning: [dep-ann] deprecated item is not annotated with @Deprecated
>         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 { {code}
> which makes the compile log unreadable.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.