import java.util.*; public class ValOutersWithGenerics { class Inner { } class InnerWithGenerics { } 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(); } public static void test() { final ValOutersWithGenerics outer = new ValOutersWithGenerics(); final ValOutersWithGenerics.Inner inner1 = outer.new Inner(); final ValOutersWithGenerics.InnerWithGenerics inner2 = outer.new InnerWithGenerics(); } static class SubClass extends ValOutersWithGenerics { public void testSubClassOfOutersWithGenerics() { List list = new ArrayList(); final ValOutersWithGenerics.Inner elem = list.get(0); } } public static void loop(Map map) { for (final java.util.Map.Entry e : map.entrySet()) { } } }