ZeligsoftDev / CX4CBDDS

CX4CBDDS component modeling and generation tool
Apache License 2.0
8 stars 5 forks source link

[DDK] ZDLConstraintManager fails to find Java constraints #508

Open eposse opened 2 months ago

eposse commented 2 months ago

Issue and tracking information

Developer's time Estimated effort to fix (hours):

Developer's Actual time spent on fix (hours)

Issue reporter to provide a detailed description of the issue in the space below

The language selector for a Constraint specification given as an OpaqueExpression includes JAVA but not Java. So when adding new constraints to the meta-model, the constraint's language is set to "JAVA", but the ZDLConstraintManager's factories only include "Java", and the check is case-sensitive, so the new constraints are not found.

Possible solutions: 1) Reimplement com.zeligsoft.base.validation.provider.ZDLConstraintManager.getSupportedLanguage(Constraint, OpaqueExpression) 2) Reimplement com.zeligsoft.base.validation.provider.ZDLConstraintManager.addConstraintFactory(IZDLConstraintFactory) to make the factories keys cannonical (e.g. all upper-case) 3) Fix whoever is adding new constraints (calling addConstraintFactory)