Selaa lähdekoodia

475728, 432874

tags/V1_8_7
Andy Clement 8 vuotta sitten
vanhempi
commit
415ef622d9
1 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  1. 5
    0
      weaver/src/org/aspectj/weaver/bcel/BcelObjectType.java

+ 5
- 0
weaver/src/org/aspectj/weaver/bcel/BcelObjectType.java Näytä tiedosto

@@ -901,6 +901,11 @@ public class BcelObjectType extends AbstractReferenceTypeDelegate {

// try finding outer class name by assuming standard class name mangling convention of javac for this class
int lastDollar = className.lastIndexOf('$');
if (lastDollar == -1) {
// Is this class damaged/obfuscated? Why did we think it was nested but couldn't find the parent using
// the attributes above. For now just ignore it... I wonder when ignoring this will come back to bite!
return null;
}
String superClassName = className.substring(0, lastDollar);
UnresolvedType outer = UnresolvedType.forName(superClassName);
return outer.resolve(getResolvedTypeX().getWorld());

Loading…
Peruuta
Tallenna