Index: src/org/eclipse/jdt/core/tests/model/CompletionTests_1_5.java =================================================================== RCS file: /home/eclipse/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/CompletionTests_1_5.java,v retrieving revision 1.48 diff -u -r1.48 CompletionTests_1_5.java --- src/org/eclipse/jdt/core/tests/model/CompletionTests_1_5.java 22 Jun 2005 13:20:12 -0000 1.48 +++ src/org/eclipse/jdt/core/tests/model/CompletionTests_1_5.java 2 Sep 2005 12:26:18 -0000 @@ -7601,4 +7601,23 @@ "foo[METHOD_DECLARATION]{public Object foo(ZAGenericType var), Lgenerics.ZAGenericType;, (Lgenerics.ZAGenericType;)Ljava.lang.Object;, foo, (var), " + (R_DEFAULT + R_INTERESTING + R_CASE + R_EXACT_NAME + R_NON_STATIC_OVERIDE + R_NON_RESTRICTED) + "}", result.proposals); } +// https://bugs.eclipse.org/bugs/show_bug.cgi?id=102284 +public void test0246() throws JavaModelException { + CompletionResult result = complete( + "/Completion/src3/test0245/X.java", + "package test0245;\n" + + "public class X {\n" + + " void test() {\n" + + " class Type {\n" + + " Type t= new Type ()\n" + + " }\n" + + " }\n" + + "}", + "Type ("); + + assertResults( + "Type[METHOD_REF]{, LType;, ()V, Type, null, " + (R_DEFAULT + R_INTERESTING + R_NON_RESTRICTED) + "}\n" + + "Type[ANONYMOUS_CLASS_DECLARATION]{, LType;, ()V, null, null, " + (R_DEFAULT + R_INTERESTING + R_NON_RESTRICTED) + "}", + result.proposals); +} }