aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs152
diff options
context:
space:
mode:
authoraclement <aclement>2006-06-08 08:27:34 +0000
committeraclement <aclement>2006-06-08 08:27:34 +0000
commitafe41a56ebf6c0dcbe69285a263f0e5739d58028 (patch)
tree57642efbdeecc06aae2a8acaa4afa9d62560527e /tests/bugs152
parent5a75601c50821c333d1777f0c4b7236368b175af (diff)
downloadaspectj-afe41a56ebf6c0dcbe69285a263f0e5739d58028.tar.gz
aspectj-afe41a56ebf6c0dcbe69285a263f0e5739d58028.zip
test for 145950
Diffstat (limited to 'tests/bugs152')
-rw-r--r--tests/bugs152/pr145950/Indirect.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/bugs152/pr145950/Indirect.java b/tests/bugs152/pr145950/Indirect.java
new file mode 100644
index 000000000..68e0f64a9
--- /dev/null
+++ b/tests/bugs152/pr145950/Indirect.java
@@ -0,0 +1,21 @@
+import java.io.Serializable;
+import java.lang.reflect.Field;
+
+public class Indirect implements I {
+ public static void main(String[] args) {
+ try {
+ Indirect b = (Indirect)Indirect.class.newInstance();
+ Field f = Indirect.class.getDeclaredField("serialVersionUID");
+ long l = f.getLong(b);
+ System.err.println("SerialVersionUID is "+l);
+ } catch (Exception e) {
+ System.err.println("Problem: "+e.toString());
+ }
+ }
+}
+
+interface I extends Serializable {}
+
+aspect X {
+ before(): staticinitialization(Indirect) {}
+}