Skip to content

Java Code Generator: Additional Property "defaultToEmptyContainer" not properly implemented for non-nullable, required Map (object) #21890

@MarcoZurich

Description

@MarcoZurich

If I understand correctly, the check for case of a non-nullable, required Map is not properly implemented:

} else if (!cp.isNullable && mapOptionalDefaultToEmpty) { // non-nullable

"mapOptionalDefaultToEmpty" is used for condition-check, it should be "mapDefaultToEmpty".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions