Procházet zdrojové kódy

Pass explicitly whether it is an interface target

If you only let it determine it from the INVOKE instruction this
can make a mistake when using INVOKESTATIC with an interface
target.
tags/V1_9_0_RC3
Andy Clement před 6 roky
rodič
revize
40fa8c710f
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1
    1
      weaver/src/org/aspectj/weaver/bcel/Utility.java

+ 1
- 1
weaver/src/org/aspectj/weaver/bcel/Utility.java Zobrazit soubor

@@ -212,7 +212,7 @@ public class Utility {
kind = Constants.INVOKEVIRTUAL;
}

return fact.createInvoke(m.getClassName(), m.getName(), m.getReturnType(), m.getArgumentTypes(), kind);
return fact.createInvoke(m.getClassName(), m.getName(), m.getReturnType(), m.getArgumentTypes(), kind, m.getEnclosingClass().isInterface());
}

/**

Načítá se…
Zrušit
Uložit