You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Robert Lazarski (Jira)" <ji...@apache.org> on 2026/02/14 19:44:00 UTC

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

     [ https://issues.apache.org/jira/browse/AXIS2-6031?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Lazarski updated AXIS2-6031:
-----------------------------------
    Fix Version/s: 2.0.1

> 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)

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org