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 150896 - added operation hides original one
Summary: added operation hides original one
Status: RESOLVED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: JAX-WS (show other bugs)
Version: 6.x
Hardware: All Linux
: P3 blocker (vote)
Assignee: Denis Anisimov
URL:
Keywords: T9Y
Depends on:
Blocks:
 
Reported: 2008-10-21 16:14 UTC by Lukas Jungmann
Modified: 2010-10-05 03: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 Lukas Jungmann 2008-10-21 16:14:19 UTC
have a ws interface:

package samples;

import javax.jws.WebService;
@WebService
public interface EndpointI {
    public int getAge();
}

and ws impl class:

package samples;

import javax.jws.WebService;
@WebService(endpointInterface="samples.EndpointI")
public class WsImpl implements EndpointI {

    public int getAge() {
        throw new UnsupportedOperationException("Not supported yet.");
    }
}

-open ws in ws designer
-invoke add operation action and add operation to web service

=> ws op. declaration added to interface contains @WebMethod and effect of this is that already presented operation is
not treated as webmethod anymore
Comment 1 Lukas Jungmann 2008-10-21 19:54:26 UTC
note for myself (or whoever will verify this): uncomment what's commented due to this issue in WebServiceDesignerTest's
addOperation and removeOperation tests (qa-func tests in websvc.kit module)
Comment 2 Milan Kuchtiak 2008-11-27 16:26:13 UTC
Really awkward behaviour.
Comment 3 Denis Anisimov 2010-10-04 10:35:05 UTC
The same behavior is true for plain webservice ( without endpoint interface ).

Let's WS has one method . This method doesn't have @javax.jws.WebMethod annotation.
Open WS in the designer view. Add operation . Original operation disappears and
just created is shown only.
Comment 4 Denis Anisimov 2010-10-04 13:37:32 UTC
changeset:   178694:e1ffe6d6ae36
user:        Denis Anisimov <ads@netbeans.org>
date:        Mon Oct 04 17:35:45 2010 +0400
summary:     Fix for BZ#150896 -  added operation hides original one
Comment 5 Quality Engineering 2010-10-05 03:14:00 UTC
Integrated into 'main-golden', will be available in build *201010050000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/e1ffe6d6ae36
User: Denis Anisimov <ads@netbeans.org>
Log: Fix for BZ#150896 -  added operation hides original one