[ https://issues.apache.org/jira/browse/AXIS2-6031?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17514741#comment-17514741 ]
Robert Lazarski commented on AXIS2-6031: ---------------------------------------- Are you using Axis2 1.8.0? I suspect this deprecated code is coming from XMLBeans itself. I see no signs of it in XmlbeansDatabindingTemplate.xsl, which is used to generate Java code from a wsdl. Nor anywhere else in axis2. We are using XMLBeans 3.0.1. The project has a unique history as it was moved to the Apache Attic, and AFAIK is the only project ever to come out of it via a special request from Apache Poi to maintain it - because they have a ton of code that depends on it. I mention this because there is XMLBeans 5.0.3 now however it isn't a clean upgrade so we've ignored it. I haven't looked into it recently. The solution to your problem might be possible with an upgrade of XMLBeans though we'd need some community help to push it forward in the near term. > 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 (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.1#820001) --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscr...@axis.apache.org For additional commands, e-mail: java-dev-h...@axis.apache.org