| Summary: | units defined in NonSI cannot be accessed from outside UOMo | ||
|---|---|---|---|
| Product: | [Technology] UOMo | Reporter: | Luca <lucasalvatori> |
| Component: | Units | Assignee: | Werner Keil <werner.keil> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | minor | ||
| Priority: | P4 | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Bug Depends on: | 357326 | ||
| Bug Blocks: | |||
|
Description
Luca
The use of NonSI is disregarded. Like all other unit systems it was moved to org.eclipse.uomo.units.impl.system. Actually it should probably go to org.eclipse.uomo.units.internal or subpackages, which is a reserved package name for these kinds of internal types. OSGi usually prevents them from being used. Will explore that, otherwise it is package local in "system" and CommonUnits should instead be used to access these kinds of units. Unlike other systems, CommonUnits is not final, and it could theoretically be extended by something like MyCommonUnits. For most other cases however, defining custom unit systems should be done by extending org.eclipse.uomo.units.AbstractSystemOfUnits. moved NonSI to "internal", works fine. |