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 241486 - Method already defined on wrong line
Summary: Method already defined on wrong line
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-06 12:30 UTC by kimsp
Modified: 2014-02-19 02:45 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Hint and error indicator on wrong line (129.12 KB, image/png)
2014-02-06 12:30 UTC, kimsp
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kimsp 2014-02-06 12:30:38 UTC
Created attachment 144864 [details]
Hint and error indicator on wrong line

Hi,

If two methods have the same signature in the same class the "Method already defined" hint should be shown in the gutter.

It is, but the error indicator in on the wrong line IMHO.

If you look at the attached screen dump you see that the error in on the @Test annotation and not the actual line that holds the method signature. This means that pressing Alt-Enter to see the hint, you have to go to the line with the @Test annotation. If you do it on the line of the method signature, you get a another hint (about Javadoc in my case).

Again, it is probably more clear if you look at the attached screen dump.

Regards
Kim
Comment 1 Dusan Balek 2014-02-17 17:50:27 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/ffe8b9f48a9c
Comment 2 Quality Engineering 2014-02-19 02:45:11 UTC
Integrated into 'main-silver', will be available in build *201402190001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/ffe8b9f48a9c
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #241486: Method already defined on wrong line - fixed.