If a tl:FormDefinitionEditor is annotated to a property of type tl:FormDefinition as @PropertyEditor, it is expected that the annotation @FormTypeProperty is also set, which specifies in which property the form type is located that serves as the basis for the form definition.
Here either a tl:TLStructuredType or a tl:TLModelPartRef is expected. If this annotated property is of type tl:TLModelPartRef and is changed, a ClassCastException occurs, because it is assumed that the value is a tl:TLStructuredType.
- Open the form editor.
- Configure "Objects".
- In the configuration dialog for "Objects" select a type X` that has a specialization `Y.
- Configure a form for X
- Select Y.
- Expectation: No error will occur and the previously configured form will be preserved.