Bug 352085

Summary: codeSelect fails on class instance creation of parameterized local type
Product: [Eclipse Project] JDT Reporter: Markus Keller <markus.kell.r>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: VERIFIED DUPLICATE QA Contact:
Severity: minor    
Priority: P3 CC: amj87.iitr, satyam.kandula, srikanth_sankaran
Version: 3.7   
Target Milestone: 3.8 M2   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Markus Keller CLA 2011-07-14 09:37:19 EDT
3.6.2, 3.7, and BETA_JAVA7

codeSelect fails on a class instance creation of a parameterized local type, e.g. on "new Locl<Integer>(42)" below. Works fine for non-generic local types.

package org.test;
public class BindingKeysTest {
	void foo() {
		class Locl<E> {
			/**
			 * Ctor
			 * @param arg the arg!
			 */
			public Locl(E arg) {
				
			}
		}
		Locl<Integer> locl = new Locl<Integer>(42);
		System.out.println(locl);
		
		
		class Local2 {
			/**
			 * Ctor Local2
			 */
			Local2() {
				
			}
		}
		Local2 l2= new Local2();
	}
}
Comment 1 Markus Keller CLA 2011-09-06 07:05:19 EDT

*** This bug has been marked as a duplicate of bug 356325 ***
Comment 2 Srikanth Sankaran CLA 2011-09-13 04:07:19 EDT
Verified for 3.8M2 using build id: I20110912-0800.