Bug 396986 - Util.getUnresolvedJavaElement doesn't check whether inner class is static
Summary: Util.getUnresolvedJavaElement doesn't check whether inner class is static
Status: VERIFIED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.3   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: 4.3 M5   Edit
Assignee: Jay Arthanareeswaran CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-20 06:10 EST by Sven Efftinge CLA
Modified: 2013-03-12 04:42 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Efftinge CLA 2012-12-20 06:10:09 EST
When calling getJavaElement() on an MethodBinding which points to a constructor of a static inner class, a corrupt IMethod handle is returned.

Looks like the code in Util.getUnresolvedJavaElement ignores the 'static' information (see line 1417) 

Bundle Version: 3.9.0.v20120808-155455
Comment 1 Jay Arthanareeswaran CLA 2012-12-20 06:35:15 EST
I believe this is fixed via bug 388137. Please check one of the recent builds.
Comment 2 Manoj N Palat CLA 2013-03-12 04:16:25 EDT
Verified for 4.3 M6 for build Id I20130310-2000