ReflectionHelper leaks deployment classes in wildfly integration

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.

Environment

Fedora 19, Oracle 7u45, Wildfly 7952aa65e67e1d, Hibernate 4.3.0.Beta4, PostgreSQL 9.2

Status

Assignee

Unassigned

Reporter

Brent Douglas

Labels

None

Worked in

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Community Help Wanted

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

backportReEvaluate

None

Time tracking

1h

Components

Fix versions

Affects versions

Priority

Major
Configure