Open eclipse-ocl-bot opened 1 month ago
By Ed Willink on May 11, 2019 14:41
Please provide a repro, preferably a zipped project with a JUnit test that demonstrates how your expectations are not satisfied.
Your comment so far leaves me much too much to guess at.
| --- | --- | | Bugzilla Link | 547182 | | Status | NEW | | Importance | P3 normal | | Reported | May 11, 2019 11:04 EDT | | Modified | May 11, 2019 14:41 EDT | | Reporter | Sina Madani |
Description
I have a standalone OCl application where I can handle either an OCL query (expressed as an operation with a specific name) or as a validator for models. When parsing a CompleteOCL document by calling ocl.parse(scriptUri), subsequent registration of a validator by calling new CompleteOCLEObjectValidator(metamodelPackage, scriptUri, ocl.getEnvironmentFactory()) then doesn't do any validation -- or at least, produces no diagnostics.
Removing the call to ocl.parse(scriptUri) seems to fix this.