Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 495563

Summary: Array creation reference AST (CreationReference) nodes are not resolving method bindings
Product: [Eclipse Project] JDT Reporter: Raffi Khatchadourian <raffi.khatchadourian>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: raffi.khatchadourian
Version: 3.1   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X   
Whiteboard: stalebug

Description Raffi Khatchadourian CLA 2016-06-06 15:52:18 EDT
I am unable to resolve the method binding for CreationReference nodes that correspond to array creation references even for ASTs for which bindings are resolved. For example, suppose that `reference` refers to the array creation reference node representing int[]::new:

CreationReference reference = (CreationReference) node;
IMethodBinding binding = reference.resolveMethodBinding();

Here, binding will be null even though I have requested that the AST resolve bindings.

-- Configuration Details --
Product: Eclipse 4.5.2.20160218-0600 (org.eclipse.epp.package.committers.product)
Installed Features:
 org.eclipse.jdt 3.11.2.v20160212-1500
Comment 1 Eclipse Genie CLA 2019-07-29 16:28:57 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.