diff options
author | aclement <aclement> | 2006-05-30 16:09:31 +0000 |
---|---|---|
committer | aclement <aclement> | 2006-05-30 16:09:31 +0000 |
commit | b4a28a99e4e7afbf3cefb3b43a6432b24525d7b2 (patch) | |
tree | 3f9ddebca6d111ef052fa80b8bcb0b8f1128bfaf /tests/bugs152 | |
parent | 7b5abac9187c943edac29dee41a7c5cb46c6eb49 (diff) | |
download | aspectj-b4a28a99e4e7afbf3cefb3b43a6432b24525d7b2.tar.gz aspectj-b4a28a99e4e7afbf3cefb3b43a6432b24525d7b2.zip |
test for 144465
Diffstat (limited to 'tests/bugs152')
-rw-r--r-- | tests/bugs152/pr144465/AnAspect.java | 5 | ||||
-rw-r--r-- | tests/bugs152/pr144465/BigHorribleClass.java | 28 | ||||
-rw-r--r-- | tests/bugs152/pr144465/aop1.xml | 8 |
3 files changed, 41 insertions, 0 deletions
diff --git a/tests/bugs152/pr144465/AnAspect.java b/tests/bugs152/pr144465/AnAspect.java new file mode 100644 index 000000000..eff8137e8 --- /dev/null +++ b/tests/bugs152/pr144465/AnAspect.java @@ -0,0 +1,5 @@ +aspect AnAspect { + before(): staticinitialization(BigHorribleClass) { + + } +}
\ No newline at end of file diff --git a/tests/bugs152/pr144465/BigHorribleClass.java b/tests/bugs152/pr144465/BigHorribleClass.java new file mode 100644 index 000000000..7668307b2 --- /dev/null +++ b/tests/bugs152/pr144465/BigHorribleClass.java @@ -0,0 +1,28 @@ +import java.io.Serializable; +import java.lang.reflect.Field; + +public class BigHorribleClass implements Serializable,Comparable { + public static void main(String[] args) { + try { + BigHorribleClass b = (BigHorribleClass)BigHorribleClass.class.newInstance(); + Field f = BigHorribleClass.class.getDeclaredField("serialVersionUID"); + long l = f.getLong(b); + System.err.println("SerialVersionUID is "+l); + } catch (Exception e) { + System.err.println("Problem: "+e.toString()); + } + } + + public int anInt; + + public static boolean aBoolean = false; + + public long foo = 376; + + public void m() {} + public int compareTo(Object o) { return 0;} + public String m2(boolean b,long l, String s) { return "";} + + public static transient short fo2 = 3; + +}
\ No newline at end of file diff --git a/tests/bugs152/pr144465/aop1.xml b/tests/bugs152/pr144465/aop1.xml new file mode 100644 index 000000000..d429edb23 --- /dev/null +++ b/tests/bugs152/pr144465/aop1.xml @@ -0,0 +1,8 @@ +<aspectj> + <aspects> + <aspect name="AnAspect"/> + </aspects> + + <weaver options="-showWeaveInfo -XaddSerialVersionUID"> + </weaver> +</aspectj> |