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 64504 - Incorrectly display "Overriding Method" icon.
Summary: Incorrectly display "Overriding Method" icon.
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Daniel Prusa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-16 06:59 UTC by pzgyuanf
Modified: 2007-09-26 09:14 UTC (History)
1 user (show)

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 pzgyuanf 2005-09-16 06:59:12 UTC
Because the other day I couldn't access to the whole netbeans.org site, I have
posted this problem to use.mail.list. Maybe someone have filed it into the
Issuezilla for me. If so, just duplicated it please!


try this example:

------------------------------
package base;

public class Base {

    public void doIt() {

        printMessage();

    }

    void printMessage() {

        System.out.println("Base");

    }

}
-------------------------------

-------------------------------
package sub;

import base.Base;



public class Sub extends Base {

        void printMessage() {   // Issue here!

            System.out.println("Sub");

        }

    public static void main(String[] args) {

        Sub sub = new Sub();

        sub.doIt();

    }

}
----------------------------------------

Apparently it should not display the 'Overriding Method' Icon on the "void
printMessage() {" line in class Sub because superclass method - "void
printMessage()" is package-private. They are unrelated and merely have the same
name.

-pprun
Comment 1 Martin Roskanin 2005-09-27 13:00:48 UTC
reproduced, looks like java module problem, reassigning
Comment 2 Daniel Prusa 2005-10-04 14:11:22 UTC
Fixed in trunk.

/cvs/java/src/org/netbeans/modules/java/OverrideAnnotationSupport.java
new revision: 1.23; previous revision: 1.22