Uploaded image for project: 'Hibernate Validator'
  1. HV-1272

Don't access ResourceBundle.Control on Java 9

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects versions: None
    • Fix versions: None
    • Components: None
    • Labels:
      None
    • Last commented by a user?:
      true
    • Sprint:

      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:

      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.

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                gunnar.morling Gunnar Morling
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: