Automated rollback of commit
*** Reason for rollback ***
Calling toString on value, when it's really a SelectorList, can result in an IllegalStateException.
*** Original change description ***
Improve error messaging for AbstractAttributeMapper
RELNOTES: None.
@@ -64,9 +64,8 @@ public abstract class AbstractAttributeMapper implements AttributeMap {
} catch (ClassCastException e) {
// getIndexWithTypeCheck checks the type is right, but unexpected configurable attributes
// can still trigger cast exceptions.
- throw new IllegalArgumentException(
- String.format("wrong type for attribute \"%s\" in %s rule %s. type '%s', value '%s'",
- attributeName, ruleClass, ruleLabel, type, value), e);
+ throw new IllegalArgumentException("wrong type for attribute \"" + attributeName + "\" in "
+ + ruleClass + " rule " + ruleLabel, e);
}
}
