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

Peter Butkovic updated AXIS2-6031:
----------------------------------
    Description: 
using the xmlbeans generator in axis2 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.

> 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
>
> using the xmlbeans generator in axis2 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.1#820001)

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

Reply via email to