import java.util.Map;
import org.aspectj.ajdt.internal.core.builder.AjCompilerOptions;
-import org.eclipse.core.runtime.IPluginDescriptor;
import org.eclipse.jdt.core.JavaCore;
/**
public static final String COMPILER_REWEAVABLE = AjCompilerOptions.OPTION_XReweavable;
public static final String COMPILER_REWEAVABLE_COMPRESS = AjCompilerOptions.OPTION_XReweavableCompress;
- public AspectJCore(IPluginDescriptor pluginDescriptor) {
- super(pluginDescriptor);
+ public AspectJCore() {
+ super();
}
public static AspectJCore getAspectJCore() {
import org.eclipse.jdt.internal.compiler.lookup.*;
import org.eclipse.jdt.internal.compiler.parser.Parser;
import org.eclipse.jdt.internal.compiler.problem.AbortCompilation;
+import org.eclipse.jdt.internal.compiler.problem.AbortCompilationUnit;
/**
* An inter-type method declaration.
public void resolveStatements() {
if ((modifiers & AccSemicolonBody) != 0) {
if ((declaredModifiers & AccAbstract) == 0)
- scope.problemReporter().methodNeedingAbstractModifier(this);
+ scope.problemReporter().methodNeedBody(this);
} else {
// the method HAS a body --> abstract native modifiers are forbiden
if (((declaredModifiers & AccAbstract) != 0))
if (binding == null) {
// if binding is null, we failed to find a type used in the method params, this error
// has already been reported.
- throw new AbortCompilation(compilationResult);
+ this.ignoreFurtherInvestigation = true;
+ //return null;
+ throw new AbortCompilationUnit(compilationResult,null);
}
ResolvedMember sig = new ResolvedMember(Member.METHOD, EclipseFactory.fromBinding(onTypeBinding),
declaredModifiers, EclipseFactory.fromBinding(binding.returnType), new String(declaredSelector),