]> source.dussan.org Git - aspectj.git/commitdiff
updated for changed to inter-type constructors
authorjhugunin <jhugunin>
Thu, 19 Dec 2002 21:38:43 +0000 (21:38 +0000)
committerjhugunin <jhugunin>
Thu, 19 Dec 2002 21:38:43 +0000 (21:38 +0000)
  can't conflict with default constructors
  instance variables aren't initialized unless you call this

tests/new/InnerClassInPrivilegedAspect.java

index f6422158120df97bc1efd9bfb58838144e262dce..7bd5bfa83d97b59d779990248dea5b20f62d15db 100644 (file)
@@ -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); }