Browse Source

134471 - incremental structure model repair code overhaul - if we don't know the location, don't pretend we do

tags/V1_5_2rc1
aclement 18 years ago
parent
commit
5fb9b7c9ae
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java

+ 3
- 2
weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java View File

@@ -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));



Loading…
Cancel
Save