From ead60730f87d1eeb644a9a4c9dcdcfe85ac0b240 Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 29 Jul 2004 15:05:20 +0000 Subject: just an extra few comments... --- .../org/aspectj/ajdt/internal/compiler/ast/AspectDeclaration.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'org.aspectj.ajdt.core') diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/AspectDeclaration.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/AspectDeclaration.java index c914bc3e8..9025cf439 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/AspectDeclaration.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/AspectDeclaration.java @@ -548,6 +548,13 @@ public class AspectDeclaration extends TypeDeclaration { // codeStream.athrow(); // // body ends here + // The stuff below generates code that looks like this: + /* + * if (ajc$perSingletonInstance == null) + * throw new NoAspectBoundException("A", ajc$initFailureCause); + * else + * return ajc$perSingletonInstance; + */ // body starts here (see end of each line for what it is doing!) FieldBinding fb = world.makeFieldBinding(AjcMemberMaker.perSingletonField(typeX)); codeStream.getstatic(fb); // GETSTATIC -- cgit v1.2.3