Skip to content

Commit a4303ac

Browse files
hansonrhansonr
authored andcommitted
early Thread loading
1 parent 8886fb9 commit a4303ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sources/net.sf.j2s.java.core/srcjs/js/j2sApplet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2962,7 +2962,7 @@ if (!target) {
29622962
J2S.getResourcePath = function(path, isJavaPath) {
29632963
if (!path || path.indexOf("https:/") != 0
29642964
&& path.indexOf("https:/") != 0 && path.indexOf("file:/") != 0) {
2965-
var applet = J2S._applets[java.lang.Thread.currentThread$()
2965+
var applet = J2S._applets[Clazz.loadClass("java.lang.Thread").currentThread$()
29662966
.getName$()];
29672967
path = (!isJavaPath && applet.__Info.resourcePath || applet.__Info.j2sPath)
29682968
+ "/" + (path || "");

0 commit comments

Comments
 (0)