Community
Participate
Working Groups
Currently, an uncaught runtime exception occurring within the invocation of a java black-box operation produces an invalid result. There are two problems with this: 1) it is a lot of hassle to add checks for .oclIsInvalid() everywhere a black-box operation *may* be invoked. 2) if the black-box operation returns void, then it is impossible to detect any uncaught runtime exception that may have occurred. Since uncaught exceptions can seriously compromise the integrity and soundness of the results produced by QVTo transformations, I propose to treat any uncaught runtime exception in java black-box operations as if it were equivalent to a QVT runtime exception.
Created attachment 177693 [details] Patch for JavaMethodHandlerFactory to throw QVTRuntimeException instead of returning invalid results
Useful improvements. Junit test also added. Pushed to master for M3. Commit ID: cd736468c869a2255fe87d110576db8dfaa798d7