unitsofmeasurement/uom-systems

Jigsaw enable UCUM

keilw opened this issue · 2 comments

keilw commented

While all other modules were already exposed in Jigsaw form via #152 as part of 2.0 there are some dependencies mostly formatting exceptions in the UCUM part that require changes in the RI, like moving those exceptions to visible packages.

Needs unitsofmeasurement/indriya#269

keilw commented

Using the UCUM module via "Jigsaw" causes this problem:

Error occurred during initialization of boot layer
java.lang.module.ResolutionException: Module systems.uom.ucum contains package tech.units.indriya.format, module tech.units.indriya exports package tech.units.indriya.format to systems.uom.ucum

The reason is the messages.properties file which more or less duplicates UCUMFormat_Print.properties. There seems no way to make the RI formatting system aware of UCUM units without enhancements to the RI.

keilw commented

For 2.1 we'll deactivate the properties by putting them into a different folder/package. Based on unitsofmeasurement/indriya#270 in a follow-up release (probably 2.1) such a folder could be picked up again by Indriya allowing extension of the RI formatters again.