Skip to content

PVMT.get_or_apply_property_value_group() miss Java object extraction from EnumerationPropertyValue #239

@ylussaud

Description

@ylussaud

The code is almost good but the default case should be put in the else case of the test:

                pv_to_apply.set_value(pv.get_value())
                if pv.get_java_object().eClass().getName() == "EnumerationPropertyValue":
                    pv_to_apply.get_java_object().setType(pv.get_java_object().getType())

should be

                if pv.get_java_object().eClass().getName() == "EnumerationPropertyValue":
                    pv_to_apply.get_java_object().setType(pv.get_java_object().getType())
                else:
                    pv_to_apply.set_value(pv.get_value())

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