defect
minor
#29069
A calculated attribute of the type "General search expression" cannot return a closure
If you define a calculated attribute of the type "general search expression" and return a "calculated function" as the result of the calculation (in which some precalculated results are bound), then access to the attribute crashes:
Caused by: java.lang.ClassCastException: class com.top_logic.model.search.expr.Lambda$1 cannot be cast to class com.top_logic.model.search.expr.AnnotatedSearchExpression (com.top_logic.model.search.expr.Lambda$1 and com.top_logic.model.search.expr.AnnotatedSearchExpression are in unnamed module of loader 'app') at com.top_logic.model.search.persistency.attribute.AbstractExprMapping.serialize(AbstractExprMapping.java:88) at com.top_logic.model.search.persistency.attribute.AbstractExprMapping.getStorageObject(AbstractExprMapping.java:74) at com.top_logic.model.search.providers.AttributeByExpression.normalizeValue(AttributeByExpression.java:157) at com.top_logic.model.search.providers.AttributeByExpression.convertAndCheck(AttributeByExpression.java:132) at com.top_logic.model.search.providers.AttributeByExpression.getAttributeValue(AttributeByExpression.java:124) at com.top_logic.element.meta.kbbased.storage.AbstractDerivedStorage.getFormValue(AbstractDerivedStorage.java:38) at com.top_logic.element.meta.form.overlay.FormObjectOverlay.tValue(FormObjectOverlay.java:182) at com.top_logic.model.TLObject.tValueByName(TLObject.java:142)