OPENJPA-2342. Changed to use the getDeclaredInterfaceNames instead of getDeclaredInterfaceTypes. All testing is looking good and should alleviate the problem of the classloading.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1461751 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Kevin W. Sutter 2013-03-27 17:59:58 +00:00
parent c9fa4b9bda
commit 82027f4a35

View File

@ -534,8 +534,8 @@ public class PCEnhancer {
// check if already enhanced
ClassLoader loader = AccessController.doPrivileged(J2DoPrivHelper.getClassLoaderAction(type));
for (Class<?> iface : _managedType.getDeclaredInterfaceTypes()) {
if (iface.getName().equals(PCTYPE.getName())) {
for (String iface : _managedType.getDeclaredInterfaceNames()) {
if (iface.equals(PCTYPE.getName())) {
if (_log.isTraceEnabled()) {
_log.trace(_loc.get("pc-type", type, loader));
}