diff options
author | aclement <aclement> | 2008-12-12 17:13:01 +0000 |
---|---|---|
committer | aclement <aclement> | 2008-12-12 17:13:01 +0000 |
commit | b932237acfbcf6faa9faa1a72d1983630d6d5b7e (patch) | |
tree | aa127a29ce5c496b086e5161dcacf9cd828aea7a | |
parent | e58cc15a92634c2cdd1913a8f670bd03f9eb67fe (diff) | |
download | aspectj-b932237acfbcf6faa9faa1a72d1983630d6d5b7e.tar.gz aspectj-b932237acfbcf6faa9faa1a72d1983630d6d5b7e.zip |
258653: test and fix
-rw-r--r-- | tests/bugs163/pr258653/staticinit.java | 19 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc163/Ajc163Tests.java | 10 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc163/ajc163.xml | 4 |
3 files changed, 30 insertions, 3 deletions
diff --git a/tests/bugs163/pr258653/staticinit.java b/tests/bugs163/pr258653/staticinit.java new file mode 100644 index 000000000..4d45ebeca --- /dev/null +++ b/tests/bugs163/pr258653/staticinit.java @@ -0,0 +1,19 @@ +import org.aspectj.lang.annotation.After; +import org.aspectj.lang.annotation.Aspect; + +@Aspect +class staticinit { + @After("staticinitialization(MyType)") + public void print(){ + System.out.println("INITIALIZED"); + } +} + +//public +class MyType { + public static void main(){ + new MyType(); + } +} + + diff --git a/tests/src/org/aspectj/systemtest/ajc163/Ajc163Tests.java b/tests/src/org/aspectj/systemtest/ajc163/Ajc163Tests.java index 82bc47c82..0ad817a72 100644 --- a/tests/src/org/aspectj/systemtest/ajc163/Ajc163Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc163/Ajc163Tests.java @@ -27,9 +27,13 @@ import org.aspectj.testing.Utils; import org.aspectj.testing.XMLBasedAjcTestCase; public class Ajc163Tests extends org.aspectj.testing.XMLBasedAjcTestCase { -// public void testGenericMethodBridging_pr251326() { -// runTest("itd anonymous inner class in wrong package"); -// } + // public void testGenericMethodBridging_pr251326() { + // runTest("itd anonymous inner class in wrong package"); + // } + + public void testGetNode_pr258653() { + runTest("getNode"); + } public void testAtTargetPlus_pr255856() { runTest("attarget with plus"); diff --git a/tests/src/org/aspectj/systemtest/ajc163/ajc163.xml b/tests/src/org/aspectj/systemtest/ajc163/ajc163.xml index bdeaeeb01..9a3ee182d 100644 --- a/tests/src/org/aspectj/systemtest/ajc163/ajc163.xml +++ b/tests/src/org/aspectj/systemtest/ajc163/ajc163.xml @@ -1,6 +1,10 @@ <!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]> <suite> + + <ajc-test dir="bugs163/pr258653" title="getNode"> + <compile files="staticinit.java" options="-1.5 -emacssym"/> + </ajc-test> <ajc-test dir="bugs163/pr154427" title="getMethod returning null"> <compile files="AuthorizationImpl.java Authorization.java AuthorizationAdmin.java CallAndMethodSignatureAspect.java CallTest.java" options=""/> |