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

Wrong warning log in TypeAnnotationAwareMetaDataProvider.getTypeParameter

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.2.0.Alpha1
    • Fix Version/s: 5.2.0.Beta1
    • Labels:
    • Environment:
      Standalone Swing application with Spring, but the issue should affect all environments really
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • Suitable for new contributors:
      Yes, likely
    • Last commented by a user?:
      true
    • Sprint:

      Description

      Whenever a class has an attribute using more than one generics other than Map (a common Java 8 example would be Function<A, B>), a warning gets logged by the getTypeParameter of org.hibernate.validator.internal.metadata.provider.TypeAnnotationAwareMetaDataProvider.

      Since this is not really an error condition, a warning is probably too much here, debug would most likely be more than enough. Furthermore, the message itself is misleading, using a bad message id (188 instead of 184), so the warning currently says:

       HV000188: ParameterMessageInterpolator has been chosen, EL interpolation will not be supported
      

      which could be very misleading for users since EL not being present would indeed be a grave issue.

      Related forum topic: https://forum.hibernate.org/viewtopic.php?f=9&t=1037350&start=0

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified