--- /dev/null
+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();
+ }
+}
+
+
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");
<!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=""/>