Note the fallback if statement here. Is there a way to do an @Type
that says what to do if nothing else matches?

public JavaType typeFromId(DatabindContext context, String id) {
    KnownAttribute attribute = KnownAttribute.getAttributeForKey(id);
    if (attribute == null) {
        attribute = KnownAttribute.UNKNOWN; // extension mechanism,
build a BaseAttribute.
    return context.constructType(attribute.attributeClass());

You received this message because you are subscribed to the Google Groups 
"jackson-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
To post to this group, send email to
For more options, visit

Reply via email to