eclipse-sirius / sirius-desktop

Sirius Desktop: desktop-based graphical modelers for dedicated DSLs
https://eclipse.dev/sirius/
Eclipse Public License 2.0
15 stars 11 forks source link

Compatibility issue with the upcoming OCL version #439

Closed pcdavid closed 3 months ago

pcdavid commented 3 months ago

OCL has recently introduced a change which removes the OCL.newInstance() static methods (see https://www.eclipse.org/lists/cross-project-issues-dev/msg19930.html and https://bugs.eclipse.org/bugs/show_bug.cgi?id=416470#c16).

Sirius Desktop is impacted by the change:

[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:4.0.4:compile (default-compile) on project org.eclipse.sirius.common.ocl: Compilation failure: Compilation failure: 
[ERROR] /home/pcdavid/work/sirius-desktop/git/sirius-desktop/plugins/org.eclipse.sirius.common.ocl/src/org/eclipse/sirius/common/ocl/business/internal/interpreter/OclInterpreter.java:[281] 
[ERROR]     ocl = OCL.newInstance(EcoreEnvironmentFactory.INSTANCE);
[ERROR]               ^^^^^^^^^^^
[ERROR] The method newInstance(EcoreEnvironmentFactory) is undefined for the type OCL
pcdavid commented 3 months ago

See https://github.com/eclipse-emfservices/emf-validation/pull/30 for an (ugly) fix/workaround.