From: aclement Date: Sat, 13 Mar 2010 01:02:47 +0000 (+0000) Subject: 48080: inserts in messages X-Git-Tag: V1_6_9M1~43 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e49b375f3b0d5d65b8a86d14298d0056fc289804;p=aspectj.git 48080: inserts in messages --- diff --git a/tests/bugs169/pr48080/A.class b/tests/bugs169/pr48080/A.class new file mode 100644 index 000000000..1c777108e Binary files /dev/null and b/tests/bugs169/pr48080/A.class differ diff --git a/tests/bugs169/pr48080/A.java b/tests/bugs169/pr48080/A.java new file mode 100644 index 000000000..c8576ca79 --- /dev/null +++ b/tests/bugs169/pr48080/A.java @@ -0,0 +1,8 @@ +public class A { + public void m() { + } +} + +aspect X { + declare warning: execution(* A.m(..)): "method found"; +} diff --git a/tests/bugs169/pr48080/Warnings.java b/tests/bugs169/pr48080/Warnings.java new file mode 100644 index 000000000..805bc4129 --- /dev/null +++ b/tests/bugs169/pr48080/Warnings.java @@ -0,0 +1,26 @@ +package p; + +aspect Checker { + declare warning: execution(* A.m(..)): "joinpoint location is {joinpoint.sourcelocation.sourcefile}:{joinpoint.sourcelocation.line}"; + declare warning: execution(* A.m(..)): "joinpoint is {joinpoint}"; + declare warning: execution(* A.m(..)): "joinpoint kind is {joinpoint.kind}"; + declare warning: execution(* A.m(..)): "joinpoint kind is '{joinpoint.kind}'"; + declare warning: execution(* A.m(..)): "joinpoint line is '{joinpoint.sourcelocation.line}'"; + declare warning: execution(* A.m(..)): "joinpoint signature is {joinpoint.signature}"; + declare warning: get(int *) && within(A): "joinpoint signature is {joinpoint.signature}"; + declare warning: execution(* A.m(..)): "joinpoint declaring type is {joinpoint.signature.declaringType}"; + declare warning: execution(* A.m(..)): "advice sourcelocation is {advice.sourcelocation.sourcefile}:{advice.sourcelocation.line}"; + declare warning: get(int *): "aspect is {advice.aspecttype}"; + declare warning: get(int *): "signature name for field is {joinpoint.signature.name}"; + declare warning: execution(* A.m(..)): "signature name for method is {joinpoint.signature.name}"; + declare warning: execution(* A.m(..)): "\\{}wibble"; + declare warning: execution(* A.m(..)): "{}foobar"; + declare warning: execution(* A.m(..)): "test {advice.sourcelocation.line}\\{}{joinpoint.sourcelocation.line}"; +} + +class A { + int i; + public void m() { + System.out.println(i); + } +} diff --git a/tests/bugs169/pr48080/X.class b/tests/bugs169/pr48080/X.class new file mode 100644 index 000000000..1f95cc99c Binary files /dev/null and b/tests/bugs169/pr48080/X.class differ diff --git a/tests/src/org/aspectj/systemtest/ajc169/Ajc169Tests.java b/tests/src/org/aspectj/systemtest/ajc169/Ajc169Tests.java index 54872e40d..2d04b660a 100644 --- a/tests/src/org/aspectj/systemtest/ajc169/Ajc169Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc169/Ajc169Tests.java @@ -18,6 +18,34 @@ import org.aspectj.testing.XMLBasedAjcTestCase; public class Ajc169Tests extends org.aspectj.testing.XMLBasedAjcTestCase { + /*public void testAmbiguousMethod() { + runTest("ambiguous method"); + }*/ + + public void testChecker() { + runTest("inserts in messages"); + } +/* + public void testVerifyError() { + runTest("verifyerror on atAj"); + } + + public void testDeclareTypeWarning1() { + runTest("declare type warning - 1"); + } + + public void testDeclareTypeWarning2() { + runTest("declare type warning - 2"); + } + + public void testDeclareTypeWarning3() { + runTest("declare type warning - 3"); + } + + public void testDeclareTypeError1() { + runTest("declare type error - 1"); + }*/ + public void testPr298388() { runTest("declare mixin and generics"); } diff --git a/tests/src/org/aspectj/systemtest/ajc169/ajc169.xml b/tests/src/org/aspectj/systemtest/ajc169/ajc169.xml index 9f2408c2a..c3e79969e 100644 --- a/tests/src/org/aspectj/systemtest/ajc169/ajc169.xml +++ b/tests/src/org/aspectj/systemtest/ajc169/ajc169.xml @@ -2,6 +2,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -25,4 +57,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file