View | Details | Raw Unified | Return to bug 180524
Collapse All | Expand All

(-)compiler/org/eclipse/jdt/internal/compiler/lookup/LocalTypeBinding.java (-3 / +3 lines)
Lines 91-99 Link Here
91
	return constantPoolName;
91
	return constantPoolName;
92
}
92
}
93
93
94
ArrayBinding createArrayType(int dimensionCount) {
94
ArrayBinding createArrayType(int dimensionCount, LookupEnvironment lookupEnvironment) {
95
	if (localArrayBindings == null) {
95
	if (localArrayBindings == null) {
96
		localArrayBindings = new ArrayBinding[] {new ArrayBinding(this, dimensionCount, scope.environment())};
96
		localArrayBindings = new ArrayBinding[] {new ArrayBinding(this, dimensionCount, lookupEnvironment)};
97
		return localArrayBindings[0];
97
		return localArrayBindings[0];
98
	}
98
	}
99
99
Lines 105-111 Link Here
105
105
106
	// no matching array
106
	// no matching array
107
	System.arraycopy(localArrayBindings, 0, localArrayBindings = new ArrayBinding[length + 1], 0, length); 
107
	System.arraycopy(localArrayBindings, 0, localArrayBindings = new ArrayBinding[length + 1], 0, length); 
108
	return localArrayBindings[length] = new ArrayBinding(this, dimensionCount, scope.environment());
108
	return localArrayBindings[length] = new ArrayBinding(this, dimensionCount, lookupEnvironment);
109
}
109
}
110
110
111
/*
111
/*
(-)compiler/org/eclipse/jdt/internal/compiler/lookup/LookupEnvironment.java (-1 / +1 lines)
Lines 538-544 Link Here
538
*/
538
*/
539
public ArrayBinding createArrayType(TypeBinding leafComponentType, int dimensionCount) {
539
public ArrayBinding createArrayType(TypeBinding leafComponentType, int dimensionCount) {
540
	if (leafComponentType instanceof LocalTypeBinding) // cache local type arrays with the local type itself
540
	if (leafComponentType instanceof LocalTypeBinding) // cache local type arrays with the local type itself
541
		return ((LocalTypeBinding) leafComponentType).createArrayType(dimensionCount);
541
		return ((LocalTypeBinding) leafComponentType).createArrayType(dimensionCount, this);
542
542
543
	// find the array binding cache for this dimension
543
	// find the array binding cache for this dimension
544
	int dimIndex = dimensionCount - 1;
544
	int dimIndex = dimensionCount - 1;

Return to bug 180524