You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-dev@db.apache.org by he...@apache.org on 2003/06/20 02:38:41 UTC
cvs commit: db-torque/src/java/org/apache/torque Torque.java
henning 2003/06/19 17:38:41
Modified: src/java/org/apache/torque Torque.java
Log:
Due to some fun with the class loader, the mapBuilders must be set
in a static initializer and not directly at variable declaration time.
Without this change, Torque won't come up as an Avalon Component.
Revision Changes Path
1.83 +9 -3 db-torque/src/java/org/apache/torque/Torque.java
Index: Torque.java
===================================================================
RCS file: /home/cvs/db-torque/src/java/org/apache/torque/Torque.java,v
retrieving revision 1.82
retrieving revision 1.83
diff -u -r1.82 -r1.83
--- Torque.java 14 May 2003 19:38:05 -0000 1.82
+++ Torque.java 20 Jun 2003 00:38:40 -0000 1.83
@@ -174,8 +174,14 @@
* are serialized then unserialized prior to Torque being reinitialized.
* This condition exists in a normal catalina restart.
*/
- private static List mapBuilders
- = Collections.synchronizedList(new ArrayList());
+ private static List mapBuilders = null;
+
+ //
+ // Static initializer
+ //
+ {
+ mapBuilders = Collections.synchronizedList(new ArrayList());
+ }
/**