javaee / metro-jax-ws

https://javaee.github.io/metro-jax-ws/
Other
132 stars 68 forks source link

Apt ant task (and command-line) seems to ignore nowarn parameter #583

Closed glassfishrobot closed 15 years ago

glassfishrobot commented 16 years ago

I can't seem to suppress apt warnings using either the nowarn param in the ant task, or using -nowarn at the apt command-line. I continue to get warning messages such as:

warning: Annotation types without processors: [javax.xml.bind.annotation.XmlRootElement, javax.xml.bind.annotation.XmlElement, javax.xml.bind.annotation.XmlAnyElement] warning: Attempt to create './com/campgroundautomation/sunrise/hostedservices/sws/jaxws/CampgroundNotFoundExceptionBe an.java' multiple times java.io.IOException at com.sun.tools.apt.mirror.apt.FilerImpl.prepareFile(FilerImpl.java:318) at com.sun.tools.apt.mirror.apt.FilerImpl.getPrintWriter(FilerImpl.java:265) at com.sun.tools.apt.mirror.apt.FilerImpl.createSourceFile(FilerImpl.java:190) at com.sun.tools.internal.ws.wscompile.FilerCodeWriter.openSource(FilerCodeWriter.java:57) at com.sun.codemodel.internal.JPackage.createJavaSourceFileWriter(JPackage.java:484) at com.sun.codemodel.internal.JPackage.build(JPackage.java:435) at com.sun.codemodel.internal.JCodeModel.build(JCodeModel.java:281) at com.sun.codemodel.internal.JCodeModel.build(JCodeModel.java:271) at com.sun.tools.internal.ws.processor.modeler.annotation.WebServiceWrapperGenerator.doPostProcessW ebService(WebServiceWrapperGenerator.java:129) at com.sun.tools.internal.ws.processor.modeler.annotation.WebServiceWrapperGenerator.postProcessWeb Service(WebServiceWrapperGenerator.java:116) at com.sun.tools.internal.ws.processor.modeler.annotation.WebServiceVisitor.visitClassDeclaration(WebSer viceVisitor.java:169) at com.sun.tools.apt.mirror.declaration.ClassDeclarationImpl.accept(ClassDeclarationImpl.java:95) at com.sun.tools.internal.ws.processor.modeler.annotation.WebServiceAP.buildModel(WebServiceAP.java:3 47) at com.sun.tools.internal.ws.processor.modeler.annotation.WebServiceAP.process(WebServiceAP.java:232) at com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.process(AnnotationProcessor s.java:60) at com.sun.tools.apt.comp.Apt.main(Apt.java:454) at com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:258) at com.sun.tools.apt.main.Main.compile(Main.java:1102) at com.sun.tools.apt.main.Main.compile(Main.java:964) at com.sun.tools.apt.Main.processing(Main.java:95) at com.sun.tools.apt.Main.process(Main.java:43) at com.sun.tools.apt.Main.main(Main.java:34)

Environment

Operating System: Mac OS X Platform: Other

Affected Versions

[2.1.4]

glassfishrobot commented 16 years ago

Reported by jrsharp@java.net

glassfishrobot commented 16 years ago

jitu@java.net said: assigning it to rama

glassfishrobot commented 16 years ago

jrsharp@java.net said: Any ideas on this one yet? Let me know if I can help provide any additional info.

glassfishrobot commented 16 years ago

jitu@java.net said: Just didn't get to this one yet.

glassfishrobot commented 15 years ago

jrsharp@java.net said: Just checking in to see if anyone has a target for this one yet. Thanks.

glassfishrobot commented 15 years ago

jrsharp@java.net said: Ping.

glassfishrobot commented 15 years ago

ramapulavarthi@java.net said: I used Apt ant task in JAX-WS 2.2 with nowarn="true" and it does not give any warning. See the output without nowarn attribute, warning: Annotation types without processors: [javax.xml.bind.annotation.XmlRootElement, javax.xml.bind.annotation.XmlAccessorType, javax.xml.bind.annotation.XmlType, javax.xml.bind.annotation.XmlElement] 1 warning

With nowarn="true", I get no such warning.

This should be the same behavior with JAX-WS 2.1.7. Please reopen the bug if you still see the issue.

glassfishrobot commented 16 years ago

Was assigned to ramapulavarthi@java.net

glassfishrobot commented 7 years ago

This issue was imported from java.net JIRA JAX_WS-583

glassfishrobot commented 15 years ago

Marked as incomplete on Monday, September 21st 2009, 12:36:22 pm