--- /dev/null
+package pkg;
+
+import org.aspectj.lang.annotation.Aspect;
+import org.aspectj.lang.annotation.Before;
+
+@Aspect()
+public class AtAspectJAspect {
+
+ @Before("execution(* *.*())")
+ public void execOfEverything() {
+ }
+
+}
--- /dev/null
+package pkg;
+
+public class C {
+
+ public void foo() {
+
+ }
+
+}
public void testNoInvalidAbsoluteTypeNameWarning_pr156904_3() {runTest("ensure no invalidAbsoluteTypeName when do match - 3");}
public void testNoInvalidAbsoluteTypeNameWarning_pr156904_4() {runTest("ensure no invalidAbsoluteTypeName when do match - 4");}
+ public void testNoNPEWithThrownExceptionWarningAndAtAspectj_pr161217() {runTest("NPE with thrown exception warning and at aspectj");}
/////////////////////////////////////////
public static Test suite() {
</ajc-test>
+ <ajc-test dir="bugs153/pr161217" title="NPE with thrown exception warning and at aspectj">
+ <compile files="AtAspectJAspect.java, C.java" options="-warn:+unusedThrown -1.5"/>
+ </ajc-test>
+
</suite>
\ No newline at end of file
// (bug 129282). This may be expanded to include other compiler warnings
// at the moment it only deals with 'declared exception is not thrown'
if (!shadow.getWorld().isIgnoringUnusedDeclaredThrownException()
- && !thrownExceptions.isEmpty()) {
+ && !getThrownExceptions().isEmpty()) {
Member member = shadow.getSignature();
if (member instanceof BcelMethod) {
removeUnnecessaryProblems((BcelMethod)member,