} else if (ad._maxValue != null && floatVal.compareTo((Float) ad._maxValue) > 0) {
rangeError = true;
}
break;
case AttributeDefinition.SHORT :
<BUG>Short shortVal = new Short(s);
</BUG>
if (ad._minValue != null && shortVal.compareTo((Short) ad._minValue) < 0) {
rangeError = true;
} else if (ad._maxValue != null && shortVal.compareTo((Short) ad._maxValue) > 0) {

} else if (ad._maxValue != null && floatVal.compareTo((Float) ad._maxValue) > 0) {
rangeError = true;
}
break;
case AttributeDefinition.SHORT :
Short shortVal = Short.valueOf(s);
if (ad._minValue != null && shortVal.compareTo((Short) ad._minValue) < 0) {
rangeError = true;
} else if (ad._maxValue != null && shortVal.compareTo((Short) ad._maxValue) > 0) {
