diff options
author | aclement <aclement> | 2006-06-08 08:27:34 +0000 |
---|---|---|
committer | aclement <aclement> | 2006-06-08 08:27:34 +0000 |
commit | afe41a56ebf6c0dcbe69285a263f0e5739d58028 (patch) | |
tree | 57642efbdeecc06aae2a8acaa4afa9d62560527e /tests/bugs152 | |
parent | 5a75601c50821c333d1777f0c4b7236368b175af (diff) | |
download | aspectj-afe41a56ebf6c0dcbe69285a263f0e5739d58028.tar.gz aspectj-afe41a56ebf6c0dcbe69285a263f0e5739d58028.zip |
test for 145950
Diffstat (limited to 'tests/bugs152')
-rw-r--r-- | tests/bugs152/pr145950/Indirect.java | 21 |
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) {} +} |