--- /dev/null
+/*
+ * AOPTest
+ * Copyright (c) 2001-2006 MessageOne Inc.
+ */
+package example;
+
+public class AOPTest {
+ public static void doSomething() {}
+
+ public static void cleanup() {
+ try {
+ doSomething();
+ doSomething();
+ } catch(Exception ex) {
+ // ignore
+ }
+ }
+ public static void cleanup2() {
+ try {
+
+ doSomething();
+ } catch(Exception ex) {
+ // ignore
+ }
+ }
+
+
+ public static void main(String[] args) throws Throwable {
+ AOPTest.cleanup();
+ }
+}
+
--- /dev/null
+import java.lang.Class;
+import org.aspectj.lang.reflect.MethodSignature;
+import org.aspectj.lang.*;
+
+public aspect CodeAspect {
+ pointcut getPointcut()
+ : execution(public * example.AOPTest.cleanup());
+
+ Object around() : getPointcut() {
+ System.out.println("ASPECT WORKING");
+ //Just call the underlying method
+ return proceed();
+ }
+}
public class Ajc165Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
+ public void testVerifyError_pr277959() {
+ runTest("verifyerror");
+ }
+
public void testIfNames_pr277508() {
runTest("if method names");
}
<suite>
+ <ajc-test dir="bugs165/pr277959" title="verifyerror">
+ <compile files="AOPTest.java CodeAspect.java" options="-1.5"/>
+ <run class="example.AOPTest"/>
+ </ajc-test>
+
<ajc-test dir="bugs165/pr277508" title="if method names">
<compile files="Basic.java" options="-1.5"/>
<run class="Basic">