* Make Property.getBooleanValue() try to convert strings to integers.

Fixes bug 606 http://helma.org/bugs/show_bug.cgi?id=606
This commit is contained in:
hns 2008-03-26 11:30:31 +00:00
parent 24fbb853f4
commit 6bd3e78dfb

View file

@ -459,11 +459,7 @@ public final class Property implements IProperty, Serializable, Cloneable, Compa
return ((Boolean) value).booleanValue(); return ((Boolean) value).booleanValue();
} }
if (type == INTEGER || type == FLOAT) { return 0 != getIntegerValue();
return !(0 == getIntegerValue());
}
return false;
} }
/** /**