Test & fix for Bug 339823 - [select] base constructor invocation is not selectable
diff --git a/testplugins/org.eclipse.objectteams.otdt.tests/selection/org/eclipse/objectteams/otdt/tests/selection/codeselect/CodeSelectionTests.java b/testplugins/org.eclipse.objectteams.otdt.tests/selection/org/eclipse/objectteams/otdt/tests/selection/codeselect/CodeSelectionTests.java
index 3eec3c1..90d4ee7 100644
--- a/testplugins/org.eclipse.objectteams.otdt.tests/selection/org/eclipse/objectteams/otdt/tests/selection/codeselect/CodeSelectionTests.java
+++ b/testplugins/org.eclipse.objectteams.otdt.tests/selection/org/eclipse/objectteams/otdt/tests/selection/codeselect/CodeSelectionTests.java
@@ -88,6 +88,16 @@
                 "B1 [in B1.java [in basepkg [in src [in CodeSelection]]]]",
                 elements);
     }
+    // testing base constructor invocation:
+    public void testBaseclass1b() throws JavaModelException
+    {
+        ICompilationUnit cu = getCompilationUnit("CodeSelection", "src", "teampkg1", "T1.java");
+        IJavaElement[] elements = codeSelect(cu, "base();", "base");
+        assertElementsEqual(
+                "Unexpected elements",
+                "B1() [in B1 [in B1.java [in basepkg [in src [in CodeSelection]]]]]",
+                elements);
+    }
     
     public void testBaseclass2() throws JavaModelException
     {
diff --git a/testplugins/org.eclipse.objectteams.otdt.tests/workspace/CodeSelection/src/basepkg/B1.java b/testplugins/org.eclipse.objectteams.otdt.tests/workspace/CodeSelection/src/basepkg/B1.java
index 3a8e2fd..39f252b 100644
--- a/testplugins/org.eclipse.objectteams.otdt.tests/workspace/CodeSelection/src/basepkg/B1.java
+++ b/testplugins/org.eclipse.objectteams.otdt.tests/workspace/CodeSelection/src/basepkg/B1.java
@@ -2,6 +2,8 @@
 
 public class B1
 {
+	public B1 () { }
+
 	int bm1(int i) { return 0; }
 	
 	long jon = 3L;
diff --git a/testplugins/org.eclipse.objectteams.otdt.tests/workspace/CodeSelection/src/teampkg1/T1.java b/testplugins/org.eclipse.objectteams.otdt.tests/workspace/CodeSelection/src/teampkg1/T1.java
index 0e8ebad..afd0c10 100644
--- a/testplugins/org.eclipse.objectteams.otdt.tests/workspace/CodeSelection/src/teampkg1/T1.java
+++ b/testplugins/org.eclipse.objectteams.otdt.tests/workspace/CodeSelection/src/teampkg1/T1.java
@@ -6,5 +6,8 @@
 {
     public class R1 playedBy B1
     {
+    	protected R1() {
+    		base();
+    	}
     }
 }
\ No newline at end of file