Community
Participate
Working Groups
Build Identifier: AspectJ Compiler 1.6.12 (1.6.12 - Built: Tuesday Oct 18, 2011 at 17:52:06 GMT) - Eclipse Compiler 0.785_R33x, 3.3 The following error occurs: Type mismatch: cannot convert from Map<String,A.Inner<?>> to Map<String,A.Inner<?>> with this code that compiles through javac: package aspectj; import com.google.common.collect.Maps; import java.util.Map; public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } class A<T> { static class Inner<T> { } static Map<String, Inner<?>> getMap() { return Maps.newHashMap(); } } class B { public void failsCompilation() { Map<String, A.Inner<?>> map = A.getMap(); } } Reproducible: Always Steps to Reproduce: Run pom.xml (ajc) and pom2.xml (plain javac) in the attached tarball (I'm assuming I can attach after I submit).
Created attachment 214758 [details] maven source project that reproduces the described behavior