Explorar el Código

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

tags/V1_6_3rc1
aclement hace 15 años
padre
commit
2ceebd0571
Se han modificado 1 ficheros con 6 adiciones y 2 borrados
  1. 6
    2
      weaver/src/org/aspectj/weaver/bcel/BcelWeaver.java

+ 6
- 2
weaver/src/org/aspectj/weaver/bcel/BcelWeaver.java Ver fichero

@@ -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(

Cargando…
Cancelar
Guardar