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

Missing javax.el impl throws a javax.el.ELException instead of a ValidationException

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.3.1.Final
    • Fix Version/s: 5.3.2.Final
    • Component/s: engine
    • Labels:
      None

      Description

      Prior to 5.3.1.Final, at bootstrap, only the javax.el API was necessary if you were using a ResourceBundleMessageInterpolator: the ExpressionFactory was initialized at runtime for each interpolation.

      When we fixed https://hibernate.atlassian.net/browse/HV-1131, we decided to initialize the ExpressionFactory once and for all when initializing the ResourceBundleMessageInterpolator, making a javax.el implementation required if using the ResourceBundleMessageInterpolator.

      The issue is that if the implementation is missing, ExpressionFactory.newInstance() throws a javax.el.ELException which is not caught and wrapped into a ValidationException with a nice message.

        Attachments

          Activity

            People

            • Assignee:
              gsmet Guillaume Smet
              Reporter:
              gsmet Guillaume Smet
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: