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

Disable bundle aggregration for named modules on Java 9

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 6-future-planning
    • Component/s: None
    • Labels:
    • Last commented by a user?:
      true

      Description

      ResourceBundle#Control is not supported for named modules on Java 9. So in determineAvailabilityOfResourceBundleControl#determineAvailabilityOfResourceBundleControl() we should detect that and return false.

      Otherwise an exception will be raised:

      java.lang.UnsupportedOperationException: ResourceBundle.Control not supported in named modules
      	at java.util.ResourceBundle.checkNamedModule(java.base@9-ea/ResourceBundle.java:1551)
      	at java.util.ResourceBundle.getBundle(java.base@9-ea/ResourceBundle.java:1533)
      	at org.hibernate.validator.resourceloading.PlatformResourceBundleLocator.loadBundle(org.hibernate.validator.engine/PlatformResourceBundleLocator.java:135)
      

        Attachments

          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: