From 39f5d7fc92e1a18e2a4c0fd398a79a07460005c5 Mon Sep 17 00:00:00 2001 From: wisberg Date: Tue, 4 May 2004 17:38:37 +0000 Subject: [PATCH] interface constructor-execution join point gone --- docs/dist/doc/porting.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/dist/doc/porting.html b/docs/dist/doc/porting.html index 819ff209d..d5c693d12 100644 --- a/docs/dist/doc/porting.html +++ b/docs/dist/doc/porting.html @@ -151,11 +151,17 @@ statment. When moving code from 1.1 to 1.2, additional errors may be raised due rule. The solution is to recode the declare statement avoiding pointcut expressions that may require a run-time test.

-

Declaring a constructor on an interface is now (correctly) prohibited. +

Interface constructors no longer supported. +Declaring a constructor on an interface is now (correctly) prohibited, +and there will no longer be a constructor-execution join point for the interface. To initialize a field declared on an interface, use initialization, e.g.,

int I.i;
 after(I i) returning: initialization(I) && this(i) { i.i = 2; }
+

To pick out the constructor-execution for any implementation of I, try +

+
execution(I+.new(..))
+

For more information, see bug 49295.

-- 2.39.5