--- /dev/null
+package foo;
+
+public class Foo {
+ public static void main (String[] args) {
+ System.out.println("foo!");
+ }
+}
--- /dev/null
+package bar;
+
+public abstract aspect PrintAround {
+
+ abstract pointcut method();
+
+ Object around(): method() {
+ System.out.println("-before-");
+ Object r = proceed();
+ System.out.println("-after-");
+ return r;
+ }
+
+}
--- /dev/null
+package foo;
+
+import bar.PrintAround;
+
+public aspect PrintAroundFoo extends PrintAround {
+
+ pointcut method() : call (void Main(String[]));
+
+}
keywords="from-resolved_10x"
comment="XXX getting error - confirm line numbers">
<compile files="parent/ParentCE.java,child/ChildCE.java">
+ <message kind="error" file="child/ChildCE.java" line="32" text="pointcut 'parent.ParentCE.define()' is not visible"/>
<message kind="error" file="child/ChildCE.java" line="21"/>
- <message kind="error" file="child/ChildCE.java" line="31"/>
- <message kind="error" file="parent/ParentCE.java" line="8"/>
<message kind="error" file="parent/ParentCE.java" line="10"/>
<message kind="error" file="parent/ParentCE.java" line="12"/>
<message kind="error" file="parent/ParentCE.java" line="22"/>
public class Ajc162Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
// AspectJ1.6.2
+ public void testPublicPointcut_pr239539() { runTest("public pointcut"); }
public void testGenericDecp_pr241047() { runTest("generic decp"); }
public void testGenericDecp_pr241047_2() { runTest("generic decp - 2"); }
public void testGenericItds_pr242797_1() { runTest("generic itds - 1"); }
</run>
</ajc-test>
+ <ajc-test dir="bugs162/pr239539" title="public pointcut">
+ <compile files="PrintAround.java PrintAroundFoo.java Foo.java" options="-1.5">
+ <message kind="error" line="7" text="pointcut 'bar.PrintAround.method()' is not visible from type "/>
+ </compile>
+ </ajc-test>
+
<ajc-test dir="bugs162/pr242797/case1" title="generic itds - 1">
<compile files="ClassUtils.java CMEFinder.java Finder.java H2Deployment.java Localized.java LocalizedFinder.java OnetElement.java OnetFinder.java Partitioned.java PartitionedFinder.java" options="-1.5">
</compile>