Bug 90110 - [compiler] flag hidden static methods
Summary: [compiler] flag hidden static methods
Status: RESOLVED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-03 08:01 EDT by Sebastian Davids CLA
Modified: 2009-08-30 02:13 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Davids CLA 2005-04-03 08:01:44 EDT
Test case:

class Super {

    static void notOverridden() {
        return;
    }
}

public class Test extends Super {

    static void notOverridden() {
        return;
    }
}

@@@@

notOverridden could be flagged because it is hiding a method in Super.

Programmers new to Java might be stumped because instance methods can be
overridden but class methods cannot.

This could lead to hard to find bugs.
Comment 1 Sebastian Davids CLA 2005-04-03 08:03:35 EDT
related to bug 90111
Comment 2 Philipe Mulet CLA 2005-04-04 06:07:33 EDT
Definitely, but to be considered post 3.1, since API got frozen already.
Comment 3 Denis Roy CLA 2009-08-30 02:13:27 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.