aboutsummaryrefslogtreecommitdiffstats
path: root/tests/java5/generics/itds/sharing/CtorG.aj
diff options
context:
space:
mode:
Diffstat (limited to 'tests/java5/generics/itds/sharing/CtorG.aj')
-rw-r--r--tests/java5/generics/itds/sharing/CtorG.aj20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/java5/generics/itds/sharing/CtorG.aj b/tests/java5/generics/itds/sharing/CtorG.aj
new file mode 100644
index 000000000..d798f9c7f
--- /dev/null
+++ b/tests/java5/generics/itds/sharing/CtorG.aj
@@ -0,0 +1,20 @@
+import java.util.*;
+
+public aspect CtorG {
+
+ // visibility options...
+ public Base<Z>.new(List<Z> lz,int i) {}
+ private Base<Z>.new(List<Z> lz,String s) {}
+ Base<Z>.new(List<Z> lz,boolean b) {}
+
+ public static void main(String []argv) {
+ List<Integer> intList = new ArrayList<Integer>();
+ Base b1 = new Base(intList,1);
+// Base b2 = new Base(intList,"a");
+ Base b3 = new Base(intList,true);
+ }
+}
+
+class Base<N extends Number> {
+
+}