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

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

*/ */
public class Ajc174Tests extends 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 { public void testExtraInserts() throws Exception {
runTest("extra inserts"); runTest("extra inserts");
} }

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



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

Loading…
Cancel
Save