db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t.@apache.org
Subject svn commit: r567399 - in /db/torque/templates/trunk/src/templates/om: Object.vm ObjectWithManager.vm Peer.vm
Date Sun, 19 Aug 2007 13:22:47 GMT
Author: tv
Date: Sun Aug 19 06:22:47 2007
New Revision: 567399

URL: http://svn.apache.org/viewvc?view=rev&rev=567399
Log:
Fix JDK 1.3 compatibility for generated classes

Modified:
    db/torque/templates/trunk/src/templates/om/Object.vm
    db/torque/templates/trunk/src/templates/om/ObjectWithManager.vm
    db/torque/templates/trunk/src/templates/om/Peer.vm

Modified: db/torque/templates/trunk/src/templates/om/Object.vm
URL: http://svn.apache.org/viewvc/db/torque/templates/trunk/src/templates/om/Object.vm?view=diff&rev=567399&r1=567398&r2=567399
==============================================================================
--- db/torque/templates/trunk/src/templates/om/Object.vm (original)
+++ db/torque/templates/trunk/src/templates/om/Object.vm Sun Aug 19 06:22:47 2007
@@ -1100,7 +1100,7 @@
     #elseif ($cjtype == "double")
             return new Double(${col.GetterName}());
     #elseif ($cjtype == "boolean")
-            return Boolean.valueOf(${col.GetterName}());
+            return new Boolean(${col.GetterName}());
     #elseif ($cjtype == "short")
             return new Short(${col.GetterName}());
     #elseif ($cjtype == "byte")
@@ -1223,7 +1223,7 @@
     #elseif ($cjtype == "double")
             return new Double(${col.GetterName}());
     #elseif ($cjtype == "boolean")
-            return Boolean.valueOf(${col.GetterName}());
+            return new Boolean(${col.GetterName}());
     #elseif ($cjtype == "short")
             return new Short(${col.GetterName}());
     #elseif ($cjtype == "byte")
@@ -1282,7 +1282,7 @@
     #elseif ($cjtype == "double")
             return new Double(${col.GetterName}());
     #elseif ($cjtype == "boolean")
-            return Boolean.valueOf(${col.GetterName}());
+            return new Boolean(${col.GetterName}());
     #elseif ($cjtype == "short")
             return new Short(${col.GetterName}());
     #elseif ($cjtype == "byte")

Modified: db/torque/templates/trunk/src/templates/om/ObjectWithManager.vm
URL: http://svn.apache.org/viewvc/db/torque/templates/trunk/src/templates/om/ObjectWithManager.vm?view=diff&rev=567399&r1=567398&r2=567399
==============================================================================
--- db/torque/templates/trunk/src/templates/om/ObjectWithManager.vm (original)
+++ db/torque/templates/trunk/src/templates/om/ObjectWithManager.vm Sun Aug 19 06:22:47 2007
@@ -1117,7 +1117,7 @@
     #elseif ($cjtype == "double")
             return new Double(${col.GetterName}());
     #elseif ($cjtype == "boolean")
-            return Boolean.valueOf(${col.GetterName}());
+            return new Boolean(${col.GetterName}());
     #elseif ($cjtype == "short")
             return new Short(${col.GetterName}());
     #elseif ($cjtype == "byte")
@@ -1240,7 +1240,7 @@
     #elseif ($cjtype == "double")
             return new Double(${col.GetterName}());
     #elseif ($cjtype == "boolean")
-            return Boolean.valueOf(${col.GetterName}());
+            return new Boolean(${col.GetterName}());
     #elseif ($cjtype == "short")
             return new Short(${col.GetterName}());
     #elseif ($cjtype == "byte")
@@ -1299,7 +1299,7 @@
     #elseif ($cjtype == "double")
             return new Double(${col.GetterName}());
     #elseif ($cjtype == "boolean")
-            return Boolean.valueOf(${col.GetterName}());
+            return new Boolean(${col.GetterName}());
     #elseif ($cjtype == "short")
             return new Short(${col.GetterName}());
     #elseif ($cjtype == "byte")

Modified: db/torque/templates/trunk/src/templates/om/Peer.vm
URL: http://svn.apache.org/viewvc/db/torque/templates/trunk/src/templates/om/Peer.vm?view=diff&rev=567399&r1=567398&r2=567399
==============================================================================
--- db/torque/templates/trunk/src/templates/om/Peer.vm (original)
+++ db/torque/templates/trunk/src/templates/om/Peer.vm Sun Aug 19 06:22:47 2007
@@ -29,6 +29,7 @@
 import org.apache.torque.TooManyRowsException;
 import org.apache.torque.Torque;
 import org.apache.torque.TorqueException;
+import org.apache.torque.TorqueRuntimeException;
 import org.apache.torque.map.MapBuilder;
 import org.apache.torque.map.TableMap;
 import org.apache.torque.om.DateKey;
@@ -133,7 +134,7 @@
             catch (TorqueException e)
             {
                 log.error("Could not initialize Peer", e);
-                throw new RuntimeException(e);
+                throw new TorqueRuntimeException(e);
             }
         }
         else



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message