Bug 309237

Summary: Compile error in 3.6 M6: Missing code implementation in the compiler
Product: [Eclipse Project] JDT Reporter: Martin Aeschlimann <martinae>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: Olivier_Thomann
Version: 3.6   
Target Milestone: 3.6 M7   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Martin Aeschlimann CLA 2010-04-14 17:55:25 EDT
In 3.6 M6, I get a compile error on the attached snippet:

Missing code implementation in the compiler	Snippet.java	/X/src/snippet	line 18	Java Problem

package snippet;

import java.util.List;

public class Snippet {
        public void run(List<String> x) {
            List<String> changeSetsInContext = null;
            List<String> changeSets = null;
            if (changeSetsInContext.size() != x.size()) {
                changeSets = x;
            }
	    final List<String> changeSetsInContextParams = changeSetsInContext;
	    final List<String> changeSetsParams = changeSets;
	    new Runnable() {
	       public void run() {
                   new Runnable() {
                        public void run() {
	                    Object x= changeSetsInContextParams != null ? changeSetsInContextParams : changeSetsParams;
	                            x.toString();
	                    }
	                }.run();
	            }
	        };
	    }
	
}
Comment 1 Olivier Thomann CLA 2010-04-14 18:03:16 EDT
Martin,
Seems to a duplicate of bug 308245.

*** This bug has been marked as a duplicate of bug 308245 ***
Comment 2 Olivier Thomann CLA 2010-04-14 18:04:05 EDT
It compiles fine with HEAD.