From: jhugunin Date: Thu, 19 Dec 2002 21:38:43 +0000 (+0000) Subject: updated for changed to inter-type constructors X-Git-Tag: V_1_1_b5~250 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=70419f7987b92a106b60e8c0884b9b68ac4c9432;p=aspectj.git updated for changed to inter-type constructors can't conflict with default constructors instance variables aren't initialized unless you call this --- 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); }