*******************************************************************************/
package org.aspectj.weaver.bcel;
+import java.util.List;
+
import org.aspectj.apache.bcel.Constants;
import org.aspectj.apache.bcel.generic.InstructionBranch;
import org.aspectj.apache.bcel.generic.InstructionConstants;
/**
* Adds aspectOf(), hasAspect() etc to the annotation defined aspects
- *
+ *
* @author Alexandre Vasseur
* @author Andy Clement
*/
}
private boolean hasPerClauseMembersAlready(LazyClassGen classGen) {
- ResolvedMember[] methods = classGen.getBcelObjectType().getDeclaredMethods();
- for (int i = 0; i < methods.length; i++) {
- ResolvedMember method = methods[i];
+ List<LazyMethodGen> methodGens = classGen.getMethodGens();
+ for (LazyMethodGen method: methodGens) {
if ("aspectOf".equals(method.getName())) {
if ("()".equals(method.getParameterSignature()) && (kind == PerClause.SINGLETON || kind == PerClause.PERCFLOW)) {
return true;
/**
* Add standard Synthetic (if wished) and AjSynthetic (always) attributes
- *
+ *
* @param methodGen
* @param makeJavaSynthetic true if standard Synthetic attribute must be set as well (invisible to user)
*/