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.

Bug 176973 - @WebMethod(exclude=true)
Summary: @WebMethod(exclude=true)
Status: VERIFIED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 normal (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-17 02:45 UTC by meme
Modified: 2009-12-02 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description meme 2009-11-17 02:45:18 UTC
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.
Comment 1 Milan Kuchtiak 2009-11-20 02:12:02 UTC
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()
Comment 2 Milan Kuchtiak 2009-11-20 05:50:54 UTC
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.
Comment 3 Milan Kuchtiak 2009-11-20 08:15:10 UTC
Fixed.

Details:
http://hg.netbeans.org/main/rev/b3f62bf3ca04
Comment 4 Quality Engineering 2009-11-21 15:43:39 UTC
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
Comment 5 Lukas Jungmann 2009-12-02 09:14:29 UTC
v. in 6.8