Преглед на файлове

44365: cope with also wanting to advise a method called is

tags/V1_6_9M1
aclement преди 14 години
родител
ревизия
7579d32b26

+ 9
- 0
tests/bugs169/pr44365/Errors2.java Целия файл

@@ -0,0 +1,9 @@
public class Errors2 {
public void is(String s) {
}
}

aspect X {
before(): execution(* is(..)) {}
}

+ 4
- 0
tests/src/org/aspectj/systemtest/ajc169/Ajc169Tests.java Целия файл

@@ -58,6 +58,10 @@ public class Ajc169Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
runTest("type category type patterns - e1");
}

public void testTypePatternCategories_44365_e3() {
runTest("type category type patterns - e3");
}

public void testTypePatternCategories_44365_e2() {
runTest("type category type patterns - e2");
}

+ 7
- 1
tests/src/org/aspectj/systemtest/ajc169/ajc169.xml Целия файл

@@ -60,7 +60,7 @@
<ajc-test dir="bugs169/pr44365" title="type category type patterns - e1">
<compile files="Errors1.java" options="-1.5 -showWeaveInfo">
<message kind="error" text="Syntax error on token &quot;&amp;&amp;&quot;, &quot;ClassType"/>
<message kind="error" text="Syntax error on token &quot;(&quot;, &quot;)"/>
</compile>
</ajc-test>
@@ -69,6 +69,12 @@
<message kind="error" text="Syntax error on token &quot;)&quot;, &quot;(&quot; expected"/>
</compile>
</ajc-test>
<ajc-test dir="bugs169/pr44365" title="type category type patterns - e3">
<compile files="Errors2.java" options="-1.5 -showWeaveInfo">
<message kind="weave" text="Join point 'method-execution(void Errors2.is(java.lang.String))' in Type"/>
</compile>
</ajc-test>

<ajc-test dir="bugs169/pr48080" title="inserts in messages">
<compile files="Warnings.java" options="-1.5">

Loading…
Отказ
Запис