Details
-
Bug
-
Resolution: Fixed
-
P4
-
None
-
None
-
b82
-
Verified
Description
The following scripts result in ClassCastException being thrown:
-----------
function run() {
print(arguments);
print("in run");
}
var t = new java.lang.Thread(run);
t.start();
t.join();
----------------
---------------
var r = new java.lang.Runnable() {
run: function() {
print(arguments);
print("in run");
}
}
r.run()
--------------
-----------
function run() {
print(arguments);
print("in run");
}
var t = new java.lang.Thread(run);
t.start();
t.join();
----------------
---------------
var r = new java.lang.Runnable() {
run: function() {
print(arguments);
print("in run");
}
}
r.run()
--------------