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 150923 - wrong line selected after go to source
Summary: wrong line selected after go to source
Status: RESOLVED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: Designer (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 18:09 UTC by Lukas Jungmann
Modified: 2010-10-05 03:12 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 18:09:33 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 "Go to source" action on the "getAge" operation

=>
Expected: line 18 is selected in the editor
actual: line 1 is selected
Comment 1 Lukas Jungmann 2008-10-21 19:53:44 UTC
note for myself (or whoever will verify this): uncomment what's commented due to this issue in
WebServiceDesignerTest.testGoToSource() (qa-func tests in websvc.kit module)
Comment 2 Milan Kuchtiak 2008-11-27 16:33:26 UTC
Right.
Go To action jumps somewhere at the beginning of the class.
Comment 3 Denis Anisimov 2010-10-04 07:15:48 UTC
changeset:   178595:28f5d4dd1833
user:        Denis Anisimov <ads@netbeans.org>
date:        Mon Oct 04 10:43:49 2010 +0400
summary:     Fix for BZ#150923 -  wrong line selected after go to source
Comment 4 Denis Anisimov 2010-10-04 09:02:19 UTC
Information about web service methods are taken from interface methods not
implementation class. So java model should be based on interface methods.
Only specific action implementation  should be changed. So I move the code for
implementation method search into GoTo
Comment 5 Denis Anisimov 2010-10-04 09:03:24 UTC
changeset:   178693:a33e81cb2fa7
tag:         tip
user:        Denis Anisimov <ads@netbeans.org>
date:        Mon Oct 04 13:00:56 2010 +0400
summary:     Refix for BZ#150923 -  wrong line selected after go to source
Comment 6 Quality Engineering 2010-10-05 03:12:10 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/28f5d4dd1833
User: Denis Anisimov <ads@netbeans.org>
Log: Fix for BZ#150923 -  wrong line selected after go to source