Including permalink in BlacklistedTypesConverter messaging.
@@ -526,12 +526,12 @@ public class XStream2 extends XStream {
private static class BlacklistedTypesConverter implements Converter {
@Override
public void marshal(Object source, HierarchicalStreamWriter writer, MarshallingContext context) {
- throw new UnsupportedOperationException("Refusing to marshal " + source.getClass().getName() + " for security reasons");
+ throw new UnsupportedOperationException("Refusing to marshal " + source.getClass().getName() + " for security reasons; see https://jenkins.io/redirect/class-filter/");
}
@Override
public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) {
- throw new ConversionException("Refusing to unmarshal " + reader.getNodeName() + " for security reasons");
+ throw new ConversionException("Refusing to unmarshal " + reader.getNodeName() + " for security reasons; see https://jenkins.io/redirect/class-filter/");
}
@Override
