[Commits] Rev 407: CONJ-23 : JVM does not exit if statement timeout is used. in file:///H:/bzr/mariadb-java-client/

Vladislav Vaintroub wlad at montyprogram.com
Wed Feb 13 12:05:20 EET 2013


At file:///H:/bzr/mariadb-java-client/

------------------------------------------------------------
revno: 407
revision-id: wlad at montyprogram.com-20130213100514-yli9jey98up7wzaf
parent: wlad at montyprogram.com-20130212213004-52xak8ynair4uct4
committer: Vladislav Vaintroub <wlad at montyprogram.com>
branch nick: mariadb-java-client
timestamp: Wed 2013-02-13 11:05:14 +0100
message:
  CONJ-23 : JVM does not exit if statement timeout is used.
  
  The reason is that timer thread does not exit. 
  The fix  is to Use Timer constructor that  marks timer thread a daemon.
-------------- next part --------------
=== modified file 'src/main/java/org/mariadb/jdbc/MySQLStatement.java'
--- a/src/main/java/org/mariadb/jdbc/MySQLStatement.java	2013-01-17 22:34:26 +0000
+++ b/src/main/java/org/mariadb/jdbc/MySQLStatement.java	2013-02-13 10:05:14 +0000
@@ -144,7 +144,7 @@ public class MySQLStatement implements S
             synchronized(MySQLStatement.class) {
                 result = timer;
                 if (result == null) {
-                    timer = result = new Timer();
+                    timer = result = new Timer(true);
                 }
             }
         }



More information about the commits mailing list