diff options
author | jhugunin <jhugunin> | 2002-12-19 21:38:43 +0000 |
---|---|---|
committer | jhugunin <jhugunin> | 2002-12-19 21:38:43 +0000 |
commit | 70419f7987b92a106b60e8c0884b9b68ac4c9432 (patch) | |
tree | e5b1261f0eea6cc98af5a42fdd94d7039f9d3341 /tests/new | |
parent | c86b373e28c6b0c77c90eebddf693db9df8f9ccb (diff) | |
download | aspectj-70419f7987b92a106b60e8c0884b9b68ac4c9432.tar.gz aspectj-70419f7987b92a106b60e8c0884b9b68ac4c9432.zip |
updated for changed to inter-type constructors
can't conflict with default constructors
instance variables aren't initialized unless you call this
Diffstat (limited to 'tests/new')
-rw-r--r-- | tests/new/InnerClassInPrivilegedAspect.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/new/InnerClassInPrivilegedAspect.java b/tests/new/InnerClassInPrivilegedAspect.java index f64221581..7bd5bfa83 100644 --- a/tests/new/InnerClassInPrivilegedAspect.java +++ b/tests/new/InnerClassInPrivilegedAspect.java @@ -39,6 +39,7 @@ class Util { } class Target { + private Target(String foo) {} private static int privateStaticInt = 1; private int privateInt = 1; public static void main(String args[]) { } @@ -97,6 +98,7 @@ privileged aspect PrivilegedAspectAround { /** @testcase privileged access to target private static variables from inner class in introduced constructor */ Target.new() { + this("hi"); int i = privateStaticInt; Runnable p = new Runnable() { public void run() { Util.event("new"+Target.privateStaticInt); } |