We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aae5f00 commit 70725f2Copy full SHA for 70725f2
src/main/net/sourceforge/jtds/util/TimerThread.java
@@ -97,6 +97,10 @@ public static synchronized TimerThread getInstance() {
97
public TimerThread() {
98
// Set the thread name
99
super("jTDS TimerThread");
100
+ // Set contextClassLoader to library ClassLoader if possible
101
+ try {
102
+ this.setContextClassLoader(this.getClass().getClassLoader());
103
+ } catch (SecurityException e) { }
104
// Ensure that this thread does not prevent the VM from exiting
105
this.setDaemon(true);
106
}
0 commit comments