Bug 309237 - Compile error in 3.6 M6: Missing code implementation in the compiler
Summary: Compile error in 3.6 M6: Missing code implementation in the compiler
Status: CLOSED DUPLICATE of bug 308245
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.6   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 3.6 M7   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-14 17:55 EDT by Martin Aeschlimann CLA
Modified: 2010-04-14 18:04 EDT (History)
1 user (show)

See Also:


Attachments

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