Browse Source

just an extra few comments...

tags/for_ajdt1_1_12
aclement 20 years ago
parent
commit
ead60730f8

+ 7
- 0
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/AspectDeclaration.java View 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

Loading…
Cancel
Save