### Eclipse Workspace Patch 1.0 #P org.eclipse.jdt.core.tests.compiler Index: src/org/eclipse/jdt/core/tests/compiler/parser/GenericsSelectionTest.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/parser/GenericsSelectionTest.java,v retrieving revision 1.7 diff -u -r1.7 GenericsSelectionTest.java --- src/org/eclipse/jdt/core/tests/compiler/parser/GenericsSelectionTest.java 27 Jun 2008 16:04:46 -0000 1.7 +++ src/org/eclipse/jdt/core/tests/compiler/parser/GenericsSelectionTest.java 23 Jul 2008 09:43:37 -0000 @@ -893,4 +893,45 @@ expectedReplacedSource, testName); } +//https://bugs.eclipse.org/bugs/show_bug.cgi?id=209639 +public void test0023() { + + String str = + "package test;\n" + + "public class Test {\n" + + " public List foo() {\n" + + " return Collections.emptyList();\n" + + " }\n" + + "}"; + + String selection = "emptyList"; + + String expectedCompletionNodeToString = ""; + + String completionIdentifier = "emptyList"; + String expectedUnitDisplayString = + "package test;\n" + + "public class Test {\n" + + " public Test() {\n" + + " }\n" + + " public List foo() {\n" + + " return ;\n" + + " }\n" + + "}\n"; + String expectedReplacedSource = "Collections.emptyList()"; + String testName = "