aboutsummaryrefslogtreecommitdiffstats
path: root/weaver5
diff options
context:
space:
mode:
authoraclement <aclement>2008-04-18 16:43:09 +0000
committeraclement <aclement>2008-04-18 16:43:09 +0000
commitf4527aad8efcfc306baaa4e915dee7d9ee731e66 (patch)
treef3bcecb1ffeb221f21e8a9bf7cd624f2a7550b8d /weaver5
parente389120e28f7440f0e77f115e1b7757d2196529f (diff)
downloadaspectj-f4527aad8efcfc306baaa4e915dee7d9ee731e66.tar.gz
aspectj-f4527aad8efcfc306baaa4e915dee7d9ee731e66.zip
227029: multithreaded bug in reflection
Diffstat (limited to 'weaver5')
-rw-r--r--weaver5/java5-src/org/aspectj/weaver/reflect/Java15ReflectionBasedReferenceTypeDelegate.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/weaver5/java5-src/org/aspectj/weaver/reflect/Java15ReflectionBasedReferenceTypeDelegate.java b/weaver5/java5-src/org/aspectj/weaver/reflect/Java15ReflectionBasedReferenceTypeDelegate.java
index eccfd962c..ff2c0bc7c 100644
--- a/weaver5/java5-src/org/aspectj/weaver/reflect/Java15ReflectionBasedReferenceTypeDelegate.java
+++ b/weaver5/java5-src/org/aspectj/weaver/reflect/Java15ReflectionBasedReferenceTypeDelegate.java
@@ -105,10 +105,11 @@ public class Java15ReflectionBasedReferenceTypeDelegate extends
public ResolvedMember[] getDeclaredFields() {
if (fields == null) {
Field[] reflectFields = this.myType.getDeclaredFields();
- this.fields = new ResolvedMember[reflectFields.length];
+ ResolvedMember[] rFields = new ResolvedMember[reflectFields.length];
for (int i = 0; i < reflectFields.length; i++) {
- this.fields[i] = createGenericFieldMember(reflectFields[i]);
+ rFields[i] = createGenericFieldMember(reflectFields[i]);
}
+ this.fields = rFields;
}
return fields;
}