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

ReflectionHelper leaks deployment classes in wildfly integration

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.1.Final, 5.1.0.Alpha1
    • Fix Version/s: 5.0.2.Final, 5.1.0.Beta1
    • Component/s: integration
    • Labels:
      None
    • Environment:
      Fedora 19, Oracle 7u45, Wildfly 7952aa65e67e1d, Hibernate 4.3.0.Beta4, PostgreSQL 9.2
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • Last commented by a user?:
      true

      Description

      ReflectionHelper retains a reference to validated classes in wildfly deployments meaning they can't be undeployed.

      https://github.com/hibernate/hibernate-validator/blob/master/engine/src/main/java/org/hibernate/validator/internal/util/ReflectionHelper.java?source=cc#L97

      TypeResolver has an internal cache of resolved classes which are not released.

        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