Pārlūkot izejas kodu

255555: pattern parser allowing for parentheses around declare anno signatures; cope with weaving broken code.

tags/V1_6_3rc1
aclement pirms 15 gadiem
vecāks
revīzija
2ceebd0571
1 mainītis faili ar 6 papildinājumiem un 2 dzēšanām
  1. 6
    2
      weaver/src/org/aspectj/weaver/bcel/BcelWeaver.java

+ 6
- 2
weaver/src/org/aspectj/weaver/bcel/BcelWeaver.java Parādīt failu

@@ -1582,8 +1582,12 @@ public class BcelWeaver {
private boolean applyDeclareAtType(DeclareAnnotation decA, ResolvedType onType, boolean reportProblems) {
boolean didSomething = false;
if (decA.matches(onType)) {

if (onType.hasAnnotation(decA.getAnnotationX().getType())) {
AnnotationAJ theAnnotation = decA.getAnnotationX();
// can be null for broken code!
if (theAnnotation == null) {
return false;
}
if (onType.hasAnnotation(theAnnotation.getType())) {
// Could put out a lint here for an already annotated type ...
// if (reportProblems) {
// world.getLint().elementAlreadyAnnotated.signal(

Notiek ielāde…
Atcelt
Saglabāt