Browse Source

wip ajdt marker issues with declare warning and itds on interfaces

tags/V1_7_4
Andy Clement 10 years ago
parent
commit
06f4b223d5

+ 20
- 0
tests/bugs174/ajdt_markers/Code.java View File

@@ -0,0 +1,20 @@
public class Code extends A implements I {
public static void main(String[] argv) {
Code code = new Code();
code.am();
code.im();
}
}

class A {
public void am() {}
}

interface I {
}

aspect X {
public void I.im() {}
before(): call(* A+.*m(..)) {}
}

+ 6
- 0
tests/src/org/aspectj/systemtest/ajc174/Ajc174Tests.java View File

@@ -21,6 +21,12 @@ import org.aspectj.testing.XMLBasedAjcTestCase;
*/
public class Ajc174Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
/* wip
public void testAjdtMarkers() throws Exception {
runTest("ajdt markers");
}
*/
public void testExtraInserts() throws Exception {
runTest("extra inserts");
}

+ 6
- 0
tests/src/org/aspectj/systemtest/ajc174/ajc174.xml View File

@@ -2,6 +2,12 @@

<suite>

<ajc-test dir="bugs174/ajdt_markers" title="ajdt markers">
<compile files="Code.java" options="-1.5 -showWeaveInfo">
</compile>
</ajc-test>


<ajc-test dir="bugs174/extra_inserts" title="extra inserts">
<compile files="Code.java" options="-1.5">
<message kind="warning" line="8" text="Call to foo made inside class Bar"/>

Loading…
Cancel
Save