aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraclement <aclement>2010-08-03 21:43:44 +0000
committeraclement <aclement>2010-08-03 21:43:44 +0000
commit20b3ee96a123e0bfa4f87aa92f778242f22accc2 (patch)
tree8044dd709c3ed04a668982e5f09c22841ad6f75d
parentd6ad92e41106de6441bee3d9b3bcb88c13df3627 (diff)
downloadaspectj-20b3ee96a123e0bfa4f87aa92f778242f22accc2.tar.gz
aspectj-20b3ee96a123e0bfa4f87aa92f778242f22accc2.zip
278496: testcode
-rw-r--r--tests/multiIncremental/PR278496_4/base/src/com/foo/Anno.java6
-rw-r--r--tests/multiIncremental/PR278496_4/base/src/com/foo/Anno2.java8
-rw-r--r--tests/multiIncremental/PR278496_4/base/src/com/foo/Anno3.java7
-rw-r--r--tests/multiIncremental/PR278496_4/base/src/com/foo/Anno4.java7
-rw-r--r--tests/multiIncremental/PR278496_4/base/src/com/foo/Anno5.java7
-rw-r--r--tests/multiIncremental/PR278496_4/base/src/com/foo/Anno6.java7
-rw-r--r--tests/multiIncremental/PR278496_4/base/src/com/foo/Bar.java4
-rw-r--r--tests/multiIncremental/PR278496_4/base/src/com/foo/Color.java3
-rw-r--r--tests/multiIncremental/PR278496_4/base/src/com/foo/ColorAnno.java5
-rw-r--r--tests/multiIncremental/PR278496_4/base/src/com/foo/Colored.java5
-rw-r--r--tests/multiIncremental/PR278496_4/base/src/com/foo/Extender.java11
-rw-r--r--tests/multiIncremental/PR278496_4/base/src/com/foo/Inners.java13
-rw-r--r--tests/multiIncremental/PR278496_5/base/src/com/Anno.java5
-rw-r--r--tests/multiIncremental/PR278496_5/base/src/com/Anno2.java7
-rw-r--r--tests/multiIncremental/PR278496_5/base/src/com/Foo.java15
-rw-r--r--tests/multiIncremental/PR278496_6/base/src/com/Anno.java5
-rw-r--r--tests/multiIncremental/PR278496_6/base/src/com/Anno2.java7
-rw-r--r--tests/multiIncremental/PR278496_6/base/src/com/Meths.java12
-rw-r--r--tests/multiIncremental/PR278496_7/base/src/One.java8
-rw-r--r--tests/multiIncremental/PR278496_7/base/src/Two.java7
20 files changed, 149 insertions, 0 deletions
diff --git a/tests/multiIncremental/PR278496_4/base/src/com/foo/Anno.java b/tests/multiIncremental/PR278496_4/base/src/com/foo/Anno.java
new file mode 100644
index 000000000..793bf26d7
--- /dev/null
+++ b/tests/multiIncremental/PR278496_4/base/src/com/foo/Anno.java
@@ -0,0 +1,6 @@
+package com.foo;
+import java.lang.annotation.*;
+
+@Retention(RetentionPolicy.RUNTIME)
+public @interface Anno {
+}
diff --git a/tests/multiIncremental/PR278496_4/base/src/com/foo/Anno2.java b/tests/multiIncremental/PR278496_4/base/src/com/foo/Anno2.java
new file mode 100644
index 000000000..6e0b4187e
--- /dev/null
+++ b/tests/multiIncremental/PR278496_4/base/src/com/foo/Anno2.java
@@ -0,0 +1,8 @@
+package com.foo;
+import java.lang.annotation.*;
+
+@Deprecated
+@Inherited
+@Retention(RetentionPolicy.CLASS)
+public @interface Anno2 {
+}
diff --git a/tests/multiIncremental/PR278496_4/base/src/com/foo/Anno3.java b/tests/multiIncremental/PR278496_4/base/src/com/foo/Anno3.java
new file mode 100644
index 000000000..900f859fd
--- /dev/null
+++ b/tests/multiIncremental/PR278496_4/base/src/com/foo/Anno3.java
@@ -0,0 +1,7 @@
+package com.foo;
+import java.lang.annotation.*;
+
+@Anno
+@Retention(RetentionPolicy.SOURCE)
+public @interface Anno3 {
+}
diff --git a/tests/multiIncremental/PR278496_4/base/src/com/foo/Anno4.java b/tests/multiIncremental/PR278496_4/base/src/com/foo/Anno4.java
new file mode 100644
index 000000000..92c070b1d
--- /dev/null
+++ b/tests/multiIncremental/PR278496_4/base/src/com/foo/Anno4.java
@@ -0,0 +1,7 @@
+package com.foo;
+import java.lang.annotation.*;
+
+@Anno
+@Anno2
+public @interface Anno4 {
+}
diff --git a/tests/multiIncremental/PR278496_4/base/src/com/foo/Anno5.java b/tests/multiIncremental/PR278496_4/base/src/com/foo/Anno5.java
new file mode 100644
index 000000000..b0d969c81
--- /dev/null
+++ b/tests/multiIncremental/PR278496_4/base/src/com/foo/Anno5.java
@@ -0,0 +1,7 @@
+package com.foo;
+
+import java.lang.annotation.*;
+
+@Target({ElementType.TYPE,ElementType.FIELD})
+public @interface Anno5 {
+}
diff --git a/tests/multiIncremental/PR278496_4/base/src/com/foo/Anno6.java b/tests/multiIncremental/PR278496_4/base/src/com/foo/Anno6.java
new file mode 100644
index 000000000..434198f99
--- /dev/null
+++ b/tests/multiIncremental/PR278496_4/base/src/com/foo/Anno6.java
@@ -0,0 +1,7 @@
+package com.foo;
+
+import java.lang.annotation.*;
+
+@Target({ElementType.ANNOTATION_TYPE,ElementType.LOCAL_VARIABLE,ElementType.METHOD,ElementType.PACKAGE,ElementType.PARAMETER,ElementType.CONSTRUCTOR})
+public @interface Anno6 {
+}
diff --git a/tests/multiIncremental/PR278496_4/base/src/com/foo/Bar.java b/tests/multiIncremental/PR278496_4/base/src/com/foo/Bar.java
new file mode 100644
index 000000000..48bfc297f
--- /dev/null
+++ b/tests/multiIncremental/PR278496_4/base/src/com/foo/Bar.java
@@ -0,0 +1,4 @@
+package com.foo;
+
+public class Bar {
+}
diff --git a/tests/multiIncremental/PR278496_4/base/src/com/foo/Color.java b/tests/multiIncremental/PR278496_4/base/src/com/foo/Color.java
new file mode 100644
index 000000000..baf02d640
--- /dev/null
+++ b/tests/multiIncremental/PR278496_4/base/src/com/foo/Color.java
@@ -0,0 +1,3 @@
+package com.foo;
+
+enum Color {R,G,B}
diff --git a/tests/multiIncremental/PR278496_4/base/src/com/foo/ColorAnno.java b/tests/multiIncremental/PR278496_4/base/src/com/foo/ColorAnno.java
new file mode 100644
index 000000000..46a0993f0
--- /dev/null
+++ b/tests/multiIncremental/PR278496_4/base/src/com/foo/ColorAnno.java
@@ -0,0 +1,5 @@
+package com.foo;
+
+public @interface ColorAnno {
+ Color c();
+}
diff --git a/tests/multiIncremental/PR278496_4/base/src/com/foo/Colored.java b/tests/multiIncremental/PR278496_4/base/src/com/foo/Colored.java
new file mode 100644
index 000000000..460723895
--- /dev/null
+++ b/tests/multiIncremental/PR278496_4/base/src/com/foo/Colored.java
@@ -0,0 +1,5 @@
+package com.foo;
+
+@ColorAnno(c=Color.G)
+public class Colored {
+}
diff --git a/tests/multiIncremental/PR278496_4/base/src/com/foo/Extender.java b/tests/multiIncremental/PR278496_4/base/src/com/foo/Extender.java
new file mode 100644
index 000000000..73594f2df
--- /dev/null
+++ b/tests/multiIncremental/PR278496_4/base/src/com/foo/Extender.java
@@ -0,0 +1,11 @@
+package com.foo;
+
+public class Extender extends Super implements Marker {
+ public void aMethod(String aString) {}
+ public int aField;
+
+}
+
+class Super {}
+
+interface Marker {}
diff --git a/tests/multiIncremental/PR278496_4/base/src/com/foo/Inners.java b/tests/multiIncremental/PR278496_4/base/src/com/foo/Inners.java
new file mode 100644
index 000000000..9542ce98a
--- /dev/null
+++ b/tests/multiIncremental/PR278496_4/base/src/com/foo/Inners.java
@@ -0,0 +1,13 @@
+package com.foo;
+
+public class Inners {
+
+
+ public static class Inner {
+ }
+
+ Runnable r = new Runnable() {
+ public void run() {
+ }
+ };
+}
diff --git a/tests/multiIncremental/PR278496_5/base/src/com/Anno.java b/tests/multiIncremental/PR278496_5/base/src/com/Anno.java
new file mode 100644
index 000000000..30f158284
--- /dev/null
+++ b/tests/multiIncremental/PR278496_5/base/src/com/Anno.java
@@ -0,0 +1,5 @@
+package com;
+import java.lang.annotation.*;
+
+@Retention(RetentionPolicy.RUNTIME)
+public @interface Anno {}
diff --git a/tests/multiIncremental/PR278496_5/base/src/com/Anno2.java b/tests/multiIncremental/PR278496_5/base/src/com/Anno2.java
new file mode 100644
index 000000000..42885a3d8
--- /dev/null
+++ b/tests/multiIncremental/PR278496_5/base/src/com/Anno2.java
@@ -0,0 +1,7 @@
+package com;
+import java.lang.annotation.*;
+
+@Retention(RetentionPolicy.RUNTIME)
+public @interface Anno2 {
+ int a();
+}
diff --git a/tests/multiIncremental/PR278496_5/base/src/com/Foo.java b/tests/multiIncremental/PR278496_5/base/src/com/Foo.java
new file mode 100644
index 000000000..0e331f6bc
--- /dev/null
+++ b/tests/multiIncremental/PR278496_5/base/src/com/Foo.java
@@ -0,0 +1,15 @@
+package com;
+
+import java.util.*;
+
+public class Foo {
+
+ public int i;
+ public String s;
+
+ @Anno
+ public List<String> ls;
+
+ @Anno2(a=42) @Anno
+ public List<Integer> li;
+}
diff --git a/tests/multiIncremental/PR278496_6/base/src/com/Anno.java b/tests/multiIncremental/PR278496_6/base/src/com/Anno.java
new file mode 100644
index 000000000..30f158284
--- /dev/null
+++ b/tests/multiIncremental/PR278496_6/base/src/com/Anno.java
@@ -0,0 +1,5 @@
+package com;
+import java.lang.annotation.*;
+
+@Retention(RetentionPolicy.RUNTIME)
+public @interface Anno {}
diff --git a/tests/multiIncremental/PR278496_6/base/src/com/Anno2.java b/tests/multiIncremental/PR278496_6/base/src/com/Anno2.java
new file mode 100644
index 000000000..42885a3d8
--- /dev/null
+++ b/tests/multiIncremental/PR278496_6/base/src/com/Anno2.java
@@ -0,0 +1,7 @@
+package com;
+import java.lang.annotation.*;
+
+@Retention(RetentionPolicy.RUNTIME)
+public @interface Anno2 {
+ int a();
+}
diff --git a/tests/multiIncremental/PR278496_6/base/src/com/Meths.java b/tests/multiIncremental/PR278496_6/base/src/com/Meths.java
new file mode 100644
index 000000000..7549c172c
--- /dev/null
+++ b/tests/multiIncremental/PR278496_6/base/src/com/Meths.java
@@ -0,0 +1,12 @@
+package com;
+import java.util.List;
+
+public class Meths {
+
+ @Anno
+ public void m() { }
+
+ @Anno @Anno2(a=3254)
+ private List<String> n(int i,long l,List<Integer> li) {return null;}
+
+}
diff --git a/tests/multiIncremental/PR278496_7/base/src/One.java b/tests/multiIncremental/PR278496_7/base/src/One.java
new file mode 100644
index 000000000..aa41a139a
--- /dev/null
+++ b/tests/multiIncremental/PR278496_7/base/src/One.java
@@ -0,0 +1,8 @@
+package com;
+
+public class One {
+ public class Inner {
+ }
+ public static class StaticInner {
+ }
+}
diff --git a/tests/multiIncremental/PR278496_7/base/src/Two.java b/tests/multiIncremental/PR278496_7/base/src/Two.java
new file mode 100644
index 000000000..eb606d9a6
--- /dev/null
+++ b/tests/multiIncremental/PR278496_7/base/src/Two.java
@@ -0,0 +1,7 @@
+package com;
+
+public class Two {
+ public static void main(String[] argv) {
+ new One();
+ }
+}