mirror of
https://github.com/apache/openjpa.git
synced 2025-02-22 10:07:07 +00:00
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:
parent
5f76ea2eaf
commit
22f77ef4d2
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user