import java.util.Iterator;
import java.util.List;
+import org.aspectj.ajdt.internal.compiler.ast.AspectDeclaration;
import org.aspectj.ajdt.internal.compiler.ast.PointcutDeclaration;
import org.aspectj.ajdt.internal.compiler.ast.Proceed;
import org.aspectj.ajdt.internal.compiler.lookup.EclipseFactory;
import org.aspectj.org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration;
import org.aspectj.org.eclipse.jdt.internal.compiler.ast.Annotation;
import org.aspectj.org.eclipse.jdt.internal.compiler.ast.ExplicitConstructorCall;
+import org.aspectj.org.eclipse.jdt.internal.compiler.ast.TypeDeclaration;
import org.aspectj.org.eclipse.jdt.internal.compiler.impl.CompilerOptions;
import org.aspectj.org.eclipse.jdt.internal.compiler.impl.ReferenceContext;
import org.aspectj.org.eclipse.jdt.internal.compiler.lookup.ArrayBinding;
}
super.visibilityConflict(currentMethod,inheritedMethod);
}
+
+ public void unusedPrivateType(TypeDeclaration typeDecl) {
+ // don't output unused type warnings for aspects!
+ if (!(typeDecl instanceof AspectDeclaration))
+ super.unusedPrivateType(typeDecl);
+ }
}
runTest("args generated correctly for advice execution join point");
}
+ public void testNoUnusedWarningsOnAspectTypes() {
+ runTest("no unused warnings on aspect types");
+ }
+
// helper methods.....
public SyntheticRepository createRepos(File cpentry) {
<compile files="pr59196.aj" options="-XnoInline -1.5"/>
</ajc-test>
+ <ajc-test dir="bugs150" pr="74048" title="no unused warnings on aspect types">
+ <compile files="pr74048.aj" options="-warn:unusedPrivate"/>
+ </ajc-test>
+
<!-- ============================================================================ -->
<!-- ============================================================================ -->