ObjectPropertyBase
skips value invalidation when newValue == oldValue
:
/**
* {@inheritDoc}
*/
@Override
public void set(T newValue) {
if (isBound()) {
throw new java.lang.RuntimeException((getBean() != null && getName() != null ?
getBean().getClass().getSimpleName() + "." + getName() + " : ": "") + "A bound value cannot be set.");
}
if (value != newValue) {
value = newValue;
markInvalid();
}
}
Problem: markInvalid()
and value
are private
, therefore I cannot override set(newValue)
properly.
Question: How can I obtain a type, that does not do the (value != newValue)
check?
This question is related to this question.