From b66f05a7abef6e187fb7e8bbe34a3c3e509e2321 Mon Sep 17 00:00:00 2001 From: wisberg Date: Fri, 2 Apr 2004 20:27:49 +0000 Subject: [PATCH] requirements for declaring members on interfaces --- docs/progGuideDB/implementation.xml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/progGuideDB/implementation.xml b/docs/progGuideDB/implementation.xml index 96939d29a..3647b7f65 100644 --- a/docs/progGuideDB/implementation.xml +++ b/docs/progGuideDB/implementation.xml @@ -98,6 +98,17 @@ java.lang.String unless java.lang.String is part of the compile. + + When declaring members on interfaces, the implementation must + control both the interface and the top-level implementors of + that interface (the classes that implement the interface but + do not have a superclass that implements the interface). + You may weave these separately, but be aware that you will get + runtime exceptions if you run the affected top-level classes + without the interface as produced by the same ajc implementation. + Finally, note that one cannot define static fields or methods + on interfaces. + Other AspectJ implementations, indeed, future versions of ajc, may -- 2.39.5