Bug 264693 - JEM: JavaClass.getPublicMethods returns multiple methods for overridden templated methods
Summary: JEM: JavaClass.getPublicMethods returns multiple methods for overridden templ...
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: VE (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: VE Bugzilla inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-12 09:52 EST by Dan Lee CLA
Modified: 2011-06-13 11:38 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 Dan Lee CLA 2009-02-12 09:52:37 EST
Build ID:  I20080617-2000

Steps To Reproduce:
Instantiate a JavaClass of type java.util.Date. Call getPublicMethods() on it. Notice that it returns two compareTo methods:
    -compareTo(java.util.Date) (int)
    - compareTo(java.lang.Object) (int)

The compareTo(java.lang.Object) is "incorrect" for java.util.Date.

More information:
I assume JEM is getting the compareTo(java.lang.Object) from the Comparable Interface's  'public int compareTo(T o);' Since java.util.Date overrides this method, JEM should only return the overridden method.