tpolaske opened a new issue, #7182:
URL: https://github.com/apache/incubator-kie/issues/7182

   ### Describe the bug
   
     In 10.2.0, `org.kie.dmn.model.v1_5.TUnaryTests` (and v1_6) changed from 
extending `v1_5.TExpression` to `impl.AbstractTUnaryTests`. 
`AbstractTUnaryTests.setTypeRef()` throws `UnsupportedOperationException("Not 
on DMN v1.2")`.
   
     The DMN 1.5 and 1.6 schemas (including the XSDs shipped in 
`kie-dmn-validation-10.2.0`) define `tUnaryTests extends tExpression`, which 
carries an optional `typeRef`. So `<inputValues typeRef="string">` is valid, 
but it can no longer be unmarshalled.
   
     The KIE DMN editor (kie-tools 10.1) writes this attribute: changing an 
input clause's **Type** in the side panel creates `<inputValues 
typeRef="…"><text></text></inputValues>`. Models authored in the 10.1 editor 
stop loading on the 10.2 engine.
   
     **Steps to reproduce**
     1. Take any DMN 1.5 model with a decision table and add `typeRef="string"` 
to an input clause's `<inputValues>`.
     2. Build it with 
`DMNRuntimeBuilder.fromDefaults().buildConfiguration().fromResources(...)` on 
10.2.0.
   
     **Expected:** The model builds (as on 10.1.0).
     **Actual:** The marshaller swallows the `UnsupportedOperationException`, 
`Definitions` comes back null, and the build fails later with
     `NullPointerException: "definitions" is null`.
   
     **Suggested fix:** Have v1_5/v1_6 `TUnaryTests` support `typeRef` again 
(override get/setTypeRef, or restore the `TExpression` parent), as the spec 
allows.
   
   ### Expected behavior
   
   _No response_
   
   ### Actual behavior
   
   _No response_
   
   ### How to Reproduce?
   
   _No response_
   
   ### Output of `uname -a` or `ver`
   
   _No response_
   
   ### Output of `java -version`
   
   _No response_
   
   ### GraalVM version (if different from Java)
   
   _No response_
   
   ### Kogito version or git rev (or at least Quarkus version if you are using 
Kogito via Quarkus platform BOM)
   
   _No response_
   
   ### Build tool (ie. output of `mvnw --version` or `gradlew --version`)
   
   _No response_
   
   ### Additional information
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to