eclipse-ocl / org.eclipse.ocl

Eclipse Public License 2.0
0 stars 0 forks source link

[cg] Inadequate diagnosis of missing body #2197

Open eclipse-ocl-bot opened 1 month ago

eclipse-ocl-bot commented 1 month ago

| --- | --- | | Bugzilla Link | 575304 | | Status | NEW | | Importance | P3 normal | | Reported | Aug 09, 2021 06:34 EDT | | Modified | Aug 29, 2021 06:34 EDT | | See also | Gerrit change 184709 | | Reporter | Ed Willink |

Description

If user leaves the body of an OpaqueExpression blank, very easy given the poor UML editor ergonomics, the CG helpfully puts in a commented throw UnsuportedOperationException in the generated code, but does not do anything to provoke a pop-up to warn the user at GenModel time.

e.g. in testBug570717a_uml

eclipse-ocl-bot commented 1 month ago

Aug 29, 2021 06:34

New Gerrit change created: https://git.eclipse.org/r/c/ocl/org.eclipse.ocl/+/184709