This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
When I use the @WebMethod(exclude=true) on a java interface it shows the error that "@WebMethod must not have exclude elements set to true". This is true when it's an SEI. But this also happens when having an standard class (not an interface). Within the documentation (http://wiki.netbeans.org/SpecWsEditorUI) the error has some conditions, the first of all is that's an interface. But in my case the error is shown also on a standard class.
Absolutely. If @WebMethod(exclude=true) is applied to java method, wsgen ignores the method and doesn't create wsdl:operation for that method. The hint is incorrectly implemented. Note also: Wsgen fails for this case: @WebMethod(exclude=true, operationName="hello") The message: com.sun.tools.ws.processor.modeler.ModelerException: modeler error: The @javax.jws.WebMethod.operationName element cannot be specified with the @javax.jws.WebMethod.exclude element. Class: hello.Hello method: hello()
The issue is a little bit more serious. The @WebMethod should't be present at all when endpointInterface is specified. We don't warn users about that. I'll try to implement another hint for that.
Fixed. Details: http://hg.netbeans.org/main/rev/b3f62bf3ca04
Integrated into 'main-golden', will be available in build *200911211401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/b3f62bf3ca04 User: mkuchtiak@netbeans.org Log: #176973: fixed issue with hints
v. in 6.8