import java.util.*; public class ValOutersWithGenerics { class Inner { } public void testOutersWithGenerics() { final java.lang.String foo = ""; List list = new ArrayList(); final ValOutersWithGenerics.Inner elem = list.get(0); } public void testLocalClasses() { class Local { } final Local q = new Local(); } static class SubClass extends ValOutersWithGenerics { public void testSubClassOfOutersWithGenerics() { List list = new ArrayList(); final ValOutersWithGenerics.Inner elem = list.get(0); } } }