From f6436e3fc84f7e140acb3a250a29fe38f9c20c35 Mon Sep 17 00:00:00 2001 From: acolyer Date: Mon, 9 Aug 2004 12:48:11 +0000 Subject: fix for Bugzilla Bug 67592 value in the args[] array of thisJoinPoint can be changed.... --- runtime/src/org/aspectj/runtime/reflect/JoinPointImpl.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'runtime/src') diff --git a/runtime/src/org/aspectj/runtime/reflect/JoinPointImpl.java b/runtime/src/org/aspectj/runtime/reflect/JoinPointImpl.java index 573d8b338..430f36a42 100644 --- a/runtime/src/org/aspectj/runtime/reflect/JoinPointImpl.java +++ b/runtime/src/org/aspectj/runtime/reflect/JoinPointImpl.java @@ -62,7 +62,12 @@ class JoinPointImpl implements JoinPoint { public Object getThis() { return _this; } public Object getTarget() { return target; } - public Object[] getArgs() { return args; } + public Object[] getArgs() { + if (args == null) { args = new Object[0]; } + Object[] argsCopy = new Object[args.length]; + System.arraycopy(args,0,argsCopy,0,args.length); + return argsCopy; + } public org.aspectj.lang.JoinPoint.StaticPart getStaticPart() { return staticPart; } -- cgit v1.2.3