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

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