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

Remove UnconstrainedEntityMetaDataSingleton

    Details

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

      Description

      We used to work with UnconstrainedEntityMetaDataSingleton in case a BeanMetaData was needed for a type that has no constraints at all.

      It seems this isn't used any more as of HV-1277: there used to be a call to BeanMetaDataManager#getOrCreateBeanMetaData() with allowUnconstrainedTypeSingleton=true, but that's not true any longer, meaning the singleton will never be used.

      So we should either remove that class or make sure that the change in HV-1277 Closed was the right thing indeed and if not, revert it so the singleton gets used again.

      GSM: We need to remove it as it is not compatible with the fact that we need to throw an exception for undeclared properties or methods.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: