Handle ClassNotFoundException and ClassCircularityError instances when trying to load the classes into the temporary class loader during enhancement. These exceptions will indicate that the class is not loadable, and so they couldn't have any persistent metadata anyway.

git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@501183 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Marc Prud'hommeaux 2007-01-29 21:07:20 +00:00
parent 5f76ea2eaf
commit 22f77ef4d2

View File

@ -173,6 +173,14 @@ public class PCClassFileTransformer
if (_repos.getMetaData(c, null, false) != null)
return Boolean.TRUE;
return null;
} catch (ClassNotFoundException cnfe) {
// cannot load the class: this might mean that it is a proxy
// or otherwise inaccessible class
return Boolean.FALSE;
} catch (ClassCircularityError cce) {
// this can happen if we are loading classes what this
// class already depends on
return Boolean.FALSE;
} catch (RuntimeException re) {
throw re;
} catch (Throwable t) {