diff options
author | avasseur <avasseur> | 2005-11-07 10:50:55 +0000 |
---|---|---|
committer | avasseur <avasseur> | 2005-11-07 10:50:55 +0000 |
commit | e9e0a7be5be07919d74f7da12fa59232a8b81a1e (patch) | |
tree | 5688342cf2c646ba04cbc84dca75e898e88e77d9 /tests/java5/ataspectj | |
parent | e2db71535154c6564fb30bebf2f51fc321a94f7c (diff) | |
download | aspectj-e9e0a7be5be07919d74f7da12fa59232a8b81a1e.tar.gz aspectj-e9e0a7be5be07919d74f7da12fa59232a8b81a1e.zip |
#114875 cannot reproduce NPE in @AJ abstract aspect
Diffstat (limited to 'tests/java5/ataspectj')
-rw-r--r-- | tests/java5/ataspectj/ataspectj/bugs/AbstractAspectNPEChild.java | 31 | ||||
-rw-r--r-- | tests/java5/ataspectj/ataspectj/bugs/AbstractAspectNPEParent.java | 28 |
2 files changed, 59 insertions, 0 deletions
diff --git a/tests/java5/ataspectj/ataspectj/bugs/AbstractAspectNPEChild.java b/tests/java5/ataspectj/ataspectj/bugs/AbstractAspectNPEChild.java new file mode 100644 index 000000000..0adbf41f1 --- /dev/null +++ b/tests/java5/ataspectj/ataspectj/bugs/AbstractAspectNPEChild.java @@ -0,0 +1,31 @@ +/******************************************************************************* + * Copyright (c) 2005 Contributors. + * All rights reserved. + * This program and the accompanying materials are made available + * under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution and is available at + * http://eclipse.org/legal/epl-v10.html + * + * Contributors: + * Alexandre Vasseur initial implementation + *******************************************************************************/ +package ataspectj.bugs; + +import org.aspectj.lang.annotation.Aspect; +import org.aspectj.lang.annotation.Pointcut; +import org.aspectj.lang.annotation.Before; + +/** + * @author <a href="mailto:alex AT gnilux DOT com">Alexandre Vasseur</a> + */ +@Aspect +public class AbstractAspectNPEChild extends AbstractAspectNPEParent { + + @Pointcut("execution(* ataspectj.bugs.AbstractAspectNPEParent.main(..))") + void method(){}; + + @Before("method()") + public void test(){ + + } +} diff --git a/tests/java5/ataspectj/ataspectj/bugs/AbstractAspectNPEParent.java b/tests/java5/ataspectj/ataspectj/bugs/AbstractAspectNPEParent.java new file mode 100644 index 000000000..8cba4b3b3 --- /dev/null +++ b/tests/java5/ataspectj/ataspectj/bugs/AbstractAspectNPEParent.java @@ -0,0 +1,28 @@ +/******************************************************************************* + * Copyright (c) 2005 Contributors. + * All rights reserved. + * This program and the accompanying materials are made available + * under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution and is available at + * http://eclipse.org/legal/epl-v10.html + * + * Contributors: + * Alexandre Vasseur initial implementation + *******************************************************************************/ +package ataspectj.bugs; + +import org.aspectj.lang.annotation.Pointcut; +import org.aspectj.lang.annotation.Aspect; + +/** + * @author <a href="mailto:alex AT gnilux DOT com">Alexandre Vasseur</a> + */ +@Aspect +public abstract class AbstractAspectNPEParent { + + @Pointcut + abstract void method();//NPE at AJC time + + public static void main(String args[]){ + } +} |