aboutsummaryrefslogtreecommitdiffstats
path: root/tests/java5
diff options
context:
space:
mode:
authoracolyer <acolyer>2005-11-27 18:45:06 +0000
committeracolyer <acolyer>2005-11-27 18:45:06 +0000
commitc3bef72dcac14398332abde6dfd5498eec24b042 (patch)
tree929eb53c4ea125601e466cb0a9b996753604db60 /tests/java5
parent3ce492be631f9f598bbf9d1e045e4d9637885bf1 (diff)
downloadaspectj-c3bef72dcac14398332abde6dfd5498eec24b042.tar.gz
aspectj-c3bef72dcac14398332abde6dfd5498eec24b042.zip
updated tests and fix for pr116229
Diffstat (limited to 'tests/java5')
-rw-r--r--tests/java5/ataspectj/annotationGen/RuntimePointcuts.java4
-rw-r--r--tests/java5/reflection/ReflectOnAjcCompiledPointcuts.java3
2 files changed, 4 insertions, 3 deletions
diff --git a/tests/java5/ataspectj/annotationGen/RuntimePointcuts.java b/tests/java5/ataspectj/annotationGen/RuntimePointcuts.java
index 171239cd5..995db4b2a 100644
--- a/tests/java5/ataspectj/annotationGen/RuntimePointcuts.java
+++ b/tests/java5/ataspectj/annotationGen/RuntimePointcuts.java
@@ -5,8 +5,8 @@ public class RuntimePointcuts {
public static void main(String[] args) throws Exception {
- PointcutParser parser = new PointcutParser();
- parser.setClassLoader(RuntimePointcuts.class.getClassLoader());
+ PointcutParser parser = PointcutParser.getPointcutParserSupportingAllPrimitivesAndUsingSpecifiedClassloaderForResolution(RuntimePointcuts.class.getClassLoader());
+// parser.setClassLoader(RuntimePointcuts.class.getClassLoader());
PointcutExpression pc1 = parser.parsePointcutExpression("PCLib.anyMethodExecution()");
PointcutParameter param = parser.createPointcutParameter("s",String.class);
PointcutExpression pc2 = parser.parsePointcutExpression("PCLib.joinPointWithStringArg(s)",RuntimePointcuts.class,new PointcutParameter[] {param});
diff --git a/tests/java5/reflection/ReflectOnAjcCompiledPointcuts.java b/tests/java5/reflection/ReflectOnAjcCompiledPointcuts.java
index 539e0f767..ae81ab9db 100644
--- a/tests/java5/reflection/ReflectOnAjcCompiledPointcuts.java
+++ b/tests/java5/reflection/ReflectOnAjcCompiledPointcuts.java
@@ -3,7 +3,8 @@ import org.aspectj.weaver.tools.*;
public class ReflectOnAjcCompiledPointcuts {
public static void main(String[] args) {
- PointcutParser p = new PointcutParser();
+ PointcutParser p = PointcutParser.getPointcutParserSupportingAllPrimitivesAndUsingSpecifiedClassloaderForResolution(ReflectOnAjcCompiledPointcuts.class.getClassLoader());
+// PointcutParser p = PointcutParser.getPointcutParserSupportingAllPrimitivesAndUsingContextClassloaderForResolution();
PointcutExpression pe = null;
// pe = p.parsePointcutExpression("PointcutLibrary.propertyAccess()");
// pe = p.parsePointcutExpression("PointcutLibrary.propertyUpdate()");