diff options
author | acolyer <acolyer> | 2004-08-09 12:48:11 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2004-08-09 12:48:11 +0000 |
commit | f6436e3fc84f7e140acb3a250a29fe38f9c20c35 (patch) | |
tree | d054d6e062fa72f20747d7abe4df4a211b9ccfa5 /runtime/src | |
parent | 851da68a07bcbfac4414fadc1b9f3bc02fa810a5 (diff) | |
download | aspectj-f6436e3fc84f7e140acb3a250a29fe38f9c20c35.tar.gz aspectj-f6436e3fc84f7e140acb3a250a29fe38f9c20c35.zip |
fix for Bugzilla Bug 67592 value in the args[] array of thisJoinPoint can be changed....
Diffstat (limited to 'runtime/src')
-rw-r--r-- | runtime/src/org/aspectj/runtime/reflect/JoinPointImpl.java | 7 |
1 files changed, 6 insertions, 1 deletions
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; } |