]> source.dussan.org Git - aspectj.git/commitdiff
just an extra few comments...
authoraclement <aclement>
Thu, 29 Jul 2004 15:05:20 +0000 (15:05 +0000)
committeraclement <aclement>
Thu, 29 Jul 2004 15:05:20 +0000 (15:05 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/AspectDeclaration.java

index c914bc3e837edd2bb8e26b0d8467f4f5ee76734a..9025cf439eb1ee32fcf1bc659058701b35b05b97 100644 (file)
@@ -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