mirror of https://github.com/apache/openjpa.git
Better error message when attempting to proxy final class.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@484815 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
770abf1aa8
commit
db174a9512
|
@ -431,7 +431,7 @@ public class ProxyManagerImpl
|
|||
*/
|
||||
private static void assertNotFinal(Class type) {
|
||||
if (Modifier.isFinal(type.getModifiers()))
|
||||
throw new UnsupportedException(_loc.get("proxy-final", type));
|
||||
throw new UnsupportedException(_loc.get("no-proxy-final", type));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -43,6 +43,8 @@ opt-lock-nested: Optimistic locking errors were detected when \
|
|||
the nested throwables array contains a failed object representing \
|
||||
a concurrently modified object.
|
||||
bad-array: Unable to copy array: {0}.
|
||||
no-proxy-final: Unable to create a second class object proxy for final class \
|
||||
"{0}".
|
||||
no-proxy-intf: Unable to create a second class object proxy for interface \
|
||||
"{0}". No corresponding concrete types are known.
|
||||
no-proxy-abstract: Unable to create a second class object proxy for abstract \
|
||||
|
|
Loading…
Reference in New Issue