From dd38ad1d0baa94cf3775447d196c2f69f1f9df49 Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 21 Aug 2008 16:29:52 +0000 Subject: [PATCH] 244830: test and fix: only initfailurecase field in singleton aspect --- .../aspectj/ajdt/internal/compiler/ast/AspectDeclaration.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 da36bebea..3f3eb4a98 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 @@ -245,7 +245,9 @@ public class AspectDeclaration extends TypeDeclaration { if (!isAbstract()) { - initFailureField = factory.createSyntheticFieldBinding(binding,AjcMemberMaker.initFailureCauseField(typeX)); + if (perClause!=null && perClause.getKind()==PerClause.SINGLETON) { + initFailureField = factory.createSyntheticFieldBinding(binding,AjcMemberMaker.initFailureCauseField(typeX)); + } // binding.addSyntheticField((SyntheticFieldBinding)initFailureField); //initFailureField = factory.makeFieldBinding(AjcMemberMaker.initFailureCauseField(typeX)); //binding.addField(initFailureField); -- 2.39.5