Test & fix for Bug 331669  - [assist] Autocompletion on base keyword within static callin missing
diff --git a/testplugins/org.eclipse.objectteams.otdt.ui.tests/src/org/eclipse/objectteams/otdt/ui/tests/core/CodeCompletionTest.java b/testplugins/org.eclipse.objectteams.otdt.ui.tests/src/org/eclipse/objectteams/otdt/ui/tests/core/CodeCompletionTest.java
index 79944f4..aef3178 100644
--- a/testplugins/org.eclipse.objectteams.otdt.ui.tests/src/org/eclipse/objectteams/otdt/ui/tests/core/CodeCompletionTest.java
+++ b/testplugins/org.eclipse.objectteams.otdt.ui.tests/src/org/eclipse/objectteams/otdt/ui/tests/core/CodeCompletionTest.java
@@ -723,6 +723,25 @@
 				0); // should only have one proposal, so accept any to see if there are others
 	}
 	
+	// static case, result ignored - see https://bugs.eclipse.org/bugs/show_bug.cgi?id=331669
+	public void testCompleteBasecall2() throws Exception {
+		createBaseClass("    public static String getBaseText(Object object) {return null;}\n");
+		assertTypeBodyProposal(
+				"        static callin String getText(Object o) {\n"+
+				"        	 base.|\n" +
+				"        	 return \"\";\n" +
+				"        }\n" +
+				"        getText <- replace getBaseText;\n",
+				"", // should only have one proposal, so accept any to see if there are others
+				"        static callin String getText(Object o) {\n"+
+				"        	 base.getText(|o|)\n" +
+				"        	 return \"\";\n" +
+				"        }\n" +
+				"        getText <- replace getBaseText;\n" +
+				"",
+				0); // should only have one proposal, so accept any to see if there are others
+	}
+	
 	public void testCompleteTSuperCall1()  throws Exception {
 		IPackageFragmentRoot sourceFolder= JavaProjectHelper.addSourceContainer(fJProject1, "src");