Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

bug fix from earlier commit

  • Loading branch information...
commit 538f281ed645787908dd461429adfcee0600cf27 1 parent 6fdf6ba
Burt Beckwith authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 grails-spring/src/main/groovy/grails/spring/BeanBuilder.java
View
10 grails-spring/src/main/groovy/grails/spring/BeanBuilder.java
@@ -715,11 +715,11 @@ else if (args[0] instanceof Closure) {
protected List resolveConstructorArguments(Object[] args, int start, int end) {
Object[] constructorArgs = subarray(args, start, end);
filterGStringReferences(constructorArgs);
- for (Object constructorArg : constructorArgs) {
- if (constructorArg instanceof List) {
- constructorArg = manageListIfNecessary(constructorArg);
- } else if(constructorArg instanceof Map) {
- constructorArg = manageMapIfNecessary(constructorArg);
+ for (int i = 0; i < constructorArgs.length; i++) {
+ if (constructorArgs[i] instanceof List) {
+ constructorArgs[i] = manageListIfNecessary(constructorArgs[i]);
+ } else if(constructorArgs[i] instanceof Map) {
+ constructorArgs[i] = manageMapIfNecessary(constructorArgs[i]);
}
}
return Arrays.asList(constructorArgs);
Please sign in to comment.
Something went wrong with that request. Please try again.