Bug 109630 - Code Assist with wrong method override
Summary: Code Assist with wrong method override
Status: RESOLVED DUPLICATE of bug 90234
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2005-09-15 11:34 EDT by Pablo Ilardi CLA
Modified: 2005-09-16 02:42 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 Pablo Ilardi CLA 2005-09-15 11:34:22 EDT
I have an included a library (jar) in my project, this library depends on other
library that I didn't included on muy project (I forgot to do it).
 I inherited a class from the 1st library, and in the code editor when I try to
override a method with the code assistant, it shows me not all possible methods.
When I override one of this methods that the code assist shows me, the assistant
writes the body for a method from java.lang.Object like toString, or hashCode
etc, and not the one I pointed on the assistant.
 I assume that this behaviour is cause I forgot to add the 2nd library to my
classpath Project. But it tookme a while to realise that, since the code
assistant never told me that something was missing.
Comment 1 David Karnok CLA 2005-09-16 02:25:03 EDT
Same effect with own static method overrides:

ctrl+space, selecting [static mymethod()], click or enter 

results:

private void finalize() throws Throwable {

}
in Eclipse 3.1 and

public static void mymethod() {
}
in Eclipse 3.0

Comment 2 Dani Megert CLA 2005-09-16 02:42:50 EDT

*** This bug has been marked as a duplicate of 90234 ***