Bug 352085 - codeSelect fails on class instance creation of parameterized local type
Summary: codeSelect fails on class instance creation of parameterized local type
Status: VERIFIED DUPLICATE of bug 356325
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows 7
: P3 minor (vote)
Target Milestone: 3.8 M2   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-14 09:37 EDT by Markus Keller CLA
Modified: 2011-09-13 04:07 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.