openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From awh...@apache.org
Subject svn commit: r484815 - in /incubator/openjpa/trunk/openjpa-kernel/src/main: java/org/apache/openjpa/util/ProxyManagerImpl.java resources/org/apache/openjpa/util/localizer.properties
Date Fri, 08 Dec 2006 21:54:28 GMT
Author: awhite
Date: Fri Dec  8 13:54:27 2006
New Revision: 484815

URL: http://svn.apache.org/viewvc?view=rev&rev=484815
Log:
Better error message when attempting to proxy final class.


Modified:
    incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/util/ProxyManagerImpl.java
    incubator/openjpa/trunk/openjpa-kernel/src/main/resources/org/apache/openjpa/util/localizer.properties

Modified: incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/util/ProxyManagerImpl.java
URL: http://svn.apache.org/viewvc/incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/util/ProxyManagerImpl.java?view=diff&rev=484815&r1=484814&r2=484815
==============================================================================
--- incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/util/ProxyManagerImpl.java
(original)
+++ incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/util/ProxyManagerImpl.java
Fri Dec  8 13:54:27 2006
@@ -431,7 +431,7 @@
      */
     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));
     }
 
     /**

Modified: incubator/openjpa/trunk/openjpa-kernel/src/main/resources/org/apache/openjpa/util/localizer.properties
URL: http://svn.apache.org/viewvc/incubator/openjpa/trunk/openjpa-kernel/src/main/resources/org/apache/openjpa/util/localizer.properties?view=diff&rev=484815&r1=484814&r2=484815
==============================================================================
--- incubator/openjpa/trunk/openjpa-kernel/src/main/resources/org/apache/openjpa/util/localizer.properties
(original)
+++ incubator/openjpa/trunk/openjpa-kernel/src/main/resources/org/apache/openjpa/util/localizer.properties
Fri Dec  8 13:54:27 2006
@@ -43,6 +43,8 @@
 	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 \



Mime
View raw message