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:
A. Abram White 2006-12-08 21:54:27 +00:00
parent 770abf1aa8
commit db174a9512
2 changed files with 3 additions and 1 deletions

View File

@ -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));
}
/**

View File

@ -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 \