### Eclipse Workspace Patch 1.0 #P org.eclipse.jdt.core Index: compiler/org/eclipse/jdt/internal/compiler/lookup/LocalTypeBinding.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/LocalTypeBinding.java,v retrieving revision 1.42 diff -u -r1.42 LocalTypeBinding.java --- compiler/org/eclipse/jdt/internal/compiler/lookup/LocalTypeBinding.java 24 Nov 2006 01:32:07 -0000 1.42 +++ compiler/org/eclipse/jdt/internal/compiler/lookup/LocalTypeBinding.java 3 Apr 2007 00:54:35 -0000 @@ -91,9 +91,9 @@ return constantPoolName; } -ArrayBinding createArrayType(int dimensionCount) { +ArrayBinding createArrayType(int dimensionCount, LookupEnvironment lookupEnvironment) { if (localArrayBindings == null) { - localArrayBindings = new ArrayBinding[] {new ArrayBinding(this, dimensionCount, scope.environment())}; + localArrayBindings = new ArrayBinding[] {new ArrayBinding(this, dimensionCount, lookupEnvironment)}; return localArrayBindings[0]; } @@ -105,7 +105,7 @@ // no matching array System.arraycopy(localArrayBindings, 0, localArrayBindings = new ArrayBinding[length + 1], 0, length); - return localArrayBindings[length] = new ArrayBinding(this, dimensionCount, scope.environment()); + return localArrayBindings[length] = new ArrayBinding(this, dimensionCount, lookupEnvironment); } /* Index: compiler/org/eclipse/jdt/internal/compiler/lookup/LookupEnvironment.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/LookupEnvironment.java,v retrieving revision 1.75 diff -u -r1.75 LookupEnvironment.java --- compiler/org/eclipse/jdt/internal/compiler/lookup/LookupEnvironment.java 22 Dec 2006 16:02:08 -0000 1.75 +++ compiler/org/eclipse/jdt/internal/compiler/lookup/LookupEnvironment.java 3 Apr 2007 00:54:36 -0000 @@ -538,7 +538,7 @@ */ public ArrayBinding createArrayType(TypeBinding leafComponentType, int dimensionCount) { if (leafComponentType instanceof LocalTypeBinding) // cache local type arrays with the local type itself - return ((LocalTypeBinding) leafComponentType).createArrayType(dimensionCount); + return ((LocalTypeBinding) leafComponentType).createArrayType(dimensionCount, this); // find the array binding cache for this dimension int dimIndex = dimensionCount - 1;