diff options
author | aclement <aclement> | 2011-01-31 20:34:12 +0000 |
---|---|---|
committer | aclement <aclement> | 2011-01-31 20:34:12 +0000 |
commit | 0e41055181ef493d028281486bbd118db8697159 (patch) | |
tree | c93a2614e686b5ec7050d42426f611ab996f7fc5 /tests/bugs1611 | |
parent | ecb01f75fdc9ad3e0fcff013437a549398f87788 (diff) | |
download | aspectj-0e41055181ef493d028281486bbd118db8697159.tar.gz aspectj-0e41055181ef493d028281486bbd118db8697159.zip |
335783
Diffstat (limited to 'tests/bugs1611')
-rw-r--r-- | tests/bugs1611/pr335783/A.java | 38 | ||||
-rw-r--r-- | tests/bugs1611/pr335783/X.aj | 23 | ||||
-rw-r--r-- | tests/bugs1611/pr335783/aop.xml | 10 |
3 files changed, 71 insertions, 0 deletions
diff --git a/tests/bugs1611/pr335783/A.java b/tests/bugs1611/pr335783/A.java new file mode 100644 index 000000000..5b399ea20 --- /dev/null +++ b/tests/bugs1611/pr335783/A.java @@ -0,0 +1,38 @@ + + import java.util.Hashtable; + + import javax.naming.Context; + import javax.naming.NamingException; + import javax.naming.directory.DirContext; + import javax.naming.directory.InitialDirContext; +/******************************************************************************* + * Copyright (c) 2010 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://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Andy Clement - Repro test case + * Abraham Nevado + *******************************************************************************/ + + + public class A implements java.io.Serializable{ + + public A() + { + } + public void doSomething() throws Exception + { + + + } + public static void main(String[] args) throws Exception { + A lc = new A(); + lc.doSomething(); + + } + } + + diff --git a/tests/bugs1611/pr335783/X.aj b/tests/bugs1611/pr335783/X.aj new file mode 100644 index 000000000..c14cd2bac --- /dev/null +++ b/tests/bugs1611/pr335783/X.aj @@ -0,0 +1,23 @@ +/******************************************************************************* + * Copyright (c) 2010 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://www.eclipse.org/legal/epl-v10.html + * + * Contributors: Abraham Nevado + *******************************************************************************/ + +aspect X { + + public pointcut doSomething(Object o): + execution(* *()) && target(o); + + before(Object o) : doSomething(o) { + try { + String signature = thisJoinPointStaticPart.getSignature().toString(); + System.out.println("OK"); + } catch (NullPointerException npe) { + System.out.println("KO"); + } + } +} diff --git a/tests/bugs1611/pr335783/aop.xml b/tests/bugs1611/pr335783/aop.xml new file mode 100644 index 000000000..d14273104 --- /dev/null +++ b/tests/bugs1611/pr335783/aop.xml @@ -0,0 +1,10 @@ +<aspectj> + <aspects> + <aspect name="X"/> + </aspects> + + <weaver options="-XaddSerialVersionUID -Xset:targetRuntime1_6_10=true,fastWeaving=true,weaveJavaxPackages=true -XhasMember -XlazyTjp -Xreweavable"> + <include within="*"/> + </weaver> + +</aspectj>
\ No newline at end of file |