Don't access ResourceBundle.Control on Java 9

Description

When Jigsaw-ifying HV (i.e. adding a module-info.class and making it a named module), the following exception is raised when not configuring the resource bundle locator to be non-aggregating:

1 2 3 4 5 6 7 8 java.lang.UnsupportedOperationException: ResourceBundle.Control not supported in named modules at java.base/java.util.ResourceBundle.checkNamedModule(ResourceBundle.java:1527) at java.base/java.util.ResourceBundle.getBundle(ResourceBundle.java:1488) at org.hibernate.validator.engine/org.hibernate.validator.resourceloading.PlatformResourceBundleLocator.loadBundle(PlatformResourceBundleLocator.java:135) at org.hibernate.validator.engine/org.hibernate.validator.resourceloading.PlatformResourceBundleLocator.getResourceBundle(PlatformResourceBundleLocator.java:108) at org.hibernate.validator.engine/org.hibernate.validator.messageinterpolation.AbstractMessageInterpolator.interpolateMessage(AbstractMessageInterpolator.java:265) at org.hibernate.validator.engine/org.hibernate.validator.messageinterpolation.AbstractMessageInterpolator.interpolate(AbstractMessageInterpolator.java:217) at org.hibernate.validator.engine/org.hibernate.validator.internal.engine.ValidationContext.interpolate(ValidationContext.java:426)

Not a big problem right now, but people will stumble upon it when trying to add a module descriptor for HV.

Environment

None

Status

Assignee

Unassigned

Reporter

Gunnar Morling

Labels

None

Worked in

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Community Help Wanted

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

backportReEvaluate

None

Priority

Major
Configure