From 5fb9b7c9aedbab3df52dea7c9024de8beca219cf Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 11 May 2006 07:27:18 +0000 Subject: [PATCH] 134471 - incremental structure model repair code overhaul - if we don't know the location, don't pretend we do --- weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java b/weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java index bc63e0d8a..a32361ef3 100644 --- a/weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java +++ b/weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java @@ -509,7 +509,7 @@ public class AtAjAttributes { // could not parse it, ignore the aspect return false; } else { - perClause.setLocation(struct.context, struct.context.getOffset(), struct.context.getOffset()+1);//FIXME AVASM + perClause.setLocation(struct.context, -1,-1);//struct.context.getOffset(), struct.context.getOffset()+1);//FIXME AVASM // FIXME asc see related comment way about about the version... struct.ajAttributes.add(new AjAttribute.WeaverVersionInfo()); AjAttribute.Aspect aspectAttribute = new AjAttribute.Aspect(perClause); @@ -680,7 +680,8 @@ public class AtAjAttributes { // eg. '@Coloured *' will change from a WildTypePattern to an 'AnyWithAnnotationTypePattern' after this resolution typePattern = typePattern.resolveBindings(binding, Bindings.NONE, false, false); //TODO kick ISourceLocation sl = struct.bField.getSourceLocation(); ?? - dp.setLocation(struct.context,0,0); // not ideal... + // dp.setLocation(dp.getDeclaringType().getSourceContext(), dp.getDeclaringType().getSourceLocation().getOffset(), dp.getDeclaringType().getSourceLocation().getOffset()); + dp.setLocation(struct.context,-1,-1); // not ideal... struct.ajAttributes.add(new AjAttribute.DeclareAttribute(dp)); -- 2.39.5