]> source.dussan.org Git - aspectj.git/commitdiff
312839: smaller class files
authoraclement <aclement>
Fri, 21 May 2010 16:11:57 +0000 (16:11 +0000)
committeraclement <aclement>
Fri, 21 May 2010 16:11:57 +0000 (16:11 +0000)
tests/bugs169/pr312839/one/Class.java [new file with mode: 0644]
tests/bugs169/pr312839/one/X.aj [new file with mode: 0644]

diff --git a/tests/bugs169/pr312839/one/Class.java b/tests/bugs169/pr312839/one/Class.java
new file mode 100644 (file)
index 0000000..40babad
--- /dev/null
@@ -0,0 +1,13 @@
+package com.wibble.foo;
+
+public class Class {
+  private String name = "Andy";
+
+  public static void main(String [] argv) {
+    new Class().print();
+  }
+
+  public void print() {
+    System.out.println("Hello "+name);
+  }
+}
diff --git a/tests/bugs169/pr312839/one/X.aj b/tests/bugs169/pr312839/one/X.aj
new file mode 100644 (file)
index 0000000..1643d9d
--- /dev/null
@@ -0,0 +1,15 @@
+package com.wibble.foo;
+
+import java.lang.annotation.*;
+
+aspect X {
+  public int Class.i;
+  public String Class.getMeSomething() {
+    return "abc";
+  }
+  declare parents: Class implements java.io.Serializable;
+  declare @type: Class: @Foobar;
+}
+
+@Retention(RetentionPolicy.RUNTIME)
+@interface Foobar {}