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

Bug 437452

Summary: Code completion does not honor Java 7 compiler settings
Product: z_Archived Reporter: Gunnar Wagenknecht <gunnar>
Component: RecommendersAssignee: Project inbox <recommenders-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: marcel.bruch, sewe
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard:

Description Gunnar Wagenknecht CLA 2014-06-14 12:11:42 EDT
Given:
- new Java Plug-in Project with BREE set to 1.7
- following Test class:
public class Test {

	public static void main(String[] args) {
		List<String> list = new Arra<cursor>

	}
}


Steps:
- invoke conent assist
- ArrayList ist first result (good)
- select ArrayList

Result:
public class Test {

	public static void main(String[] args) {
		List<String> list = new ArrayList<String>()<cursor>

	}
}


Expected Result:
public class Test {

	public static void main(String[] args) {
		List<String> list = new ArrayList<>()<cursor>

	}
}


The <String> is not necessary in Java 7.
Comment 1 Marcel Bruch CLA 2014-06-14 12:21:07 EDT
Thanks Gunnar. We are blocked by a JDT bug before we can fix this. Bug 435597 provides more details.

*** This bug has been marked as a duplicate of bug 435597 ***