fix for 120826
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/TypeVariableBinding.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/TypeVariableBinding.java
index 2e94844..c9369e7 100644
--- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/TypeVariableBinding.java
+++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/TypeVariableBinding.java
@@ -210,7 +210,8 @@
}
}
// no free spot found, need to grow
- System.arraycopy(constraintSubstitutes, 0, constraintSubstitutes = new TypeBinding[2*length], 0, length);
+ // AspectJ extension - only grows by 1, rather than doubling - see pr120826
+ System.arraycopy(constraintSubstitutes, 0, constraintSubstitutes = new TypeBinding[1+length], 0, length);
}
constraintSubstitutes[length] = otherType;
variableSubstitutes[variableConstraint] = constraintSubstitutes;