public TypeBinding resolveForAllocation(BlockScope scope, ASTNode location) {
TypeBinding typeBinding=null;
this.binding=
- scope.getBinding(this.token, (Binding.TYPE|Binding.METHOD | bits) & RestrictiveFlagMASK, this, true /*resolve*/);
+ scope.getBinding(this.token, (Binding.TYPE | bits) & RestrictiveFlagMASK, this, true /*resolve*/);
+ if(binding == null)
+ this.binding = scope.getBinding(this.token, (Binding.TYPE | Binding.METHOD | bits) & RestrictiveFlagMASK, this, true /*resolve*/);
if (binding instanceof TypeBinding)
typeBinding=(TypeBinding)binding;
else if (binding instanceof MethodBinding)