Community
Participate
Working Groups
exprElementType,
expression);
} else if (castType.isTypeVariable()) {
TypeBinding match = ((ReferenceBinding)expressionType).findSuperTypeErasingTo((ReferenceBinding)castType);
TypeBinding leafType = ((ArrayBinding) expressionType).leafComponentType();
if (leafType.isBaseType()) {
reportIllegalCast(scope, castType, expressionType);
return false;
}
TypeBinding match = ((ReferenceBinding)leafType).findSuperTypeErasingTo((ReferenceBinding)castType);
if (match == null) {
checkUnsafeCast(scope, castType, expressionType, match, true);