Skip to content
This repository was archived by the owner on Dec 12, 2018. It is now read-only.
This repository was archived by the owner on Dec 12, 2018. It is now read-only.

Java must not failed the execution if found an unknown providerId #1144

@josebarrueta

Description

@josebarrueta

When a child property couldn't be found, it shouldn't throw an IllegalStateException instead it should ignored, since obviously the SDK version don't support the property. Maybe log it.

        String childClassName = null;
        Object val = data.get(childIdProperty);
        if (val != null) {
            childClassName = String.valueOf(val);
        }
        Class<? extends R> childClass = idClassMap.get(childClassName);

        if (childClass == null) {
            throw new IllegalStateException("No Class mapping could be found for " + childIdProperty + ".");
        }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions