Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix for a bug in MethodInjectionPoint

The global Array _parameterValues was incorrectly shared between
reentrant calls to MethodInjectionPoint.applyInjection, thus losing
some dependencies for injection.
  • Loading branch information...
commit 0f9cafac8f3cb7e5a4ad51c02b9936474e7529ff 1 parent ced32ba
@chwthewke chwthewke authored
View
4 src/org/swiftsuspenders/typedescriptions/MethodInjectionPoint.as
@@ -19,8 +19,6 @@ package org.swiftsuspenders.typedescriptions
public class MethodInjectionPoint extends InjectionPoint
{
//---------------------- Private / Protected Properties ----------------------//
- private static const _parameterValues : Array = [];
-
protected var _parameterMappingIDs : Array;
protected var _requiredParameters : int;
@@ -55,7 +53,7 @@ package org.swiftsuspenders.typedescriptions
target : Object, targetType : Class, injector : Injector) : Array
{
var length : int = _parameterMappingIDs.length;
- var parameters : Array = _parameterValues;
+ var parameters : Array = [];
parameters.length = length;
for (var i : int = 0; i < length; i++)
{
Please sign in to comment.
Something went wrong with that request. Please try again.