Bug 80919 - [dom] IMethodBinding.overrides is wrong with initializer
Summary: [dom] IMethodBinding.overrides is wrong with initializer
Status: RESOLVED DUPLICATE of bug 98483
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-14 06:47 EST by Martin Aeschlimann CLA
Modified: 2005-06-10 04:42 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Aeschlimann CLA 2004-12-14 06:47:13 EST
20041214

class A {
   public void foo() {
   }
}

Use IMethodBinding.overrides to test the method binding of 'foo' against the
initializer (<init>) of java.lang.Object
-> true is returned

Same problem for the private static method Object.registerNatives
Comment 1 Martin Aeschlimann CLA 2004-12-14 06:57:11 EST
same for 'public final native void notify();'

As a general note for the 'overrides' feature: It's ok and even wanted that also
final or non visible methods are returned, and there's another method that
allows us to validate on that. It should just be a test if two methods have the
same signature.

Maybe a better name is what we need, see Markus' bug report
Comment 2 Markus Keller CLA 2004-12-14 07:27:22 EST
See bug 73676 comment 13.
Comment 3 Jerome Lanneluc CLA 2005-06-10 04:42:26 EDT

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