Index: src/org/eclipse/jdt/core/tests/compiler/regression/GenericTypeTest.java =================================================================== RCS file: /home/eclipse/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/GenericTypeTest.java,v retrieving revision 1.255 diff -u -r1.255 GenericTypeTest.java --- src/org/eclipse/jdt/core/tests/compiler/regression/GenericTypeTest.java 11 May 2005 17:18:46 -0000 1.255 +++ src/org/eclipse/jdt/core/tests/compiler/regression/GenericTypeTest.java 11 May 2005 18:46:49 -0000 @@ -18480,5 +18480,56 @@ " ^^^^\n" + "Zork cannot be resolved to a type\n" + "----------\n"); - } + } + + //https://bugs.eclipse.org/bugs/show_bug.cgi?id=89440 + public void test650() { + this.runConformTest( + new String[] { + "p/A.java", + "package p;\n" + + "\n" + + "public interface A {\n" + + " public static enum Stuff {\n" + + " FIRST, SECOND, THIRD\n" + + " };\n" + + "}", + }, + ""); + this.runConformTest( + new String[] { + "q/SampleClass2.java", + "package q;\n" + + "\n" + + "import p.A.Stuff;\n" + + "\n" + + "public class SampleClass2 {\n" + + " public void doSomething(Stuff thing) {\n" + + " \n" + + " }\n" + + "}" + }, + "", + null, + false, + null); + this.runConformTest( + new String[] { + "q/SampleClass3.java", + "package q;\n" + + "\n" + + "import p.A;\n" + + "\n" + + "public class SampleClass3 {\n" + + " public void doSomething() {\n" + + " SampleClass2 sample = new SampleClass2();\n" + + " sample.doSomething(A.Stuff.FIRST);\n" + + " }\n" + + "}", + }, + "", + null, + false, + null); + } }