aboutsummaryrefslogtreecommitdiffstats
path: root/weaver
diff options
context:
space:
mode:
authoraclement <aclement>2006-05-11 07:27:18 +0000
committeraclement <aclement>2006-05-11 07:27:18 +0000
commit5fb9b7c9aedbab3df52dea7c9024de8beca219cf (patch)
treed08a538ed96eaf47a250bfbecb7e30970928ce2d /weaver
parentfc1bd780246e53db9e9f1f800e61a9b30012689c (diff)
downloadaspectj-5fb9b7c9aedbab3df52dea7c9024de8beca219cf.tar.gz
aspectj-5fb9b7c9aedbab3df52dea7c9024de8beca219cf.zip
134471 - incremental structure model repair code overhaul - if we don't know the location, don't pretend we do
Diffstat (limited to 'weaver')
-rw-r--r--weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java5
1 files 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));