--- /dev/null
+package ca;
+
+import org.aspectj.lang.annotation.*;
+
+public class C {
+
+ public static void main(String[]argv) {
+ new C().setOwner();
+ }
+
+ public void setOwner() {
+ }
+
+}
--- /dev/null
+package ca;
+import org.aspectj.lang.annotation.*;
+
+@Aspect
+class OwnershipSecurityAspect {
+
+
+ @Pointcut("call(public void ca..setOwner(..)) && !within(ca..OwnershipSecurityAspect) && !within(ca..*Test)")
+ protected void myPcut() {}
+
+ @DeclareWarning("myPcut()")
+ public static final String securityError = "An advice already exists for setting an owner";
+
+
+
+}
runTest("missing impl 2");
}
+ public void testStackOverflow_364380() {
+ runTest("stackoverflow");
+ }
+
// ---
public static Test suite() {
</run>
</ajc-test>
-
+ <ajc-test dir="bugs170/pr364380" title="stackoverflow">
+ <compile files="X.aj" options="-1.5" outjar="foo.jar"/>
+ <compile files="C.java" options="-1.5" inpath="foo.jar">
+ <message kind="warning" text="An advice already exists for setting an owner"/>
+ </compile>
+ </ajc-test>
+
</suite>
\ No newline at end of file