-
Bug
-
Resolution: Fixed
-
P3
-
None
-
None
-
b47
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8085586 | emb-9 | Sundararajan Athijegannathan | P3 | Resolved | Fixed | team |
JDK-8087071 | 8u65 | Sundararajan Athijegannathan | P3 | Resolved | Fixed | b01 |
JDK-8080291 | 8u60 | Sundararajan Athijegannathan | P3 | Resolved | Fixed | b16 |
JDK-8138465 | emb-8u65 | Unassigned | P3 | Resolved | Fixed | b01 |
JDK-8081196 | emb-8u60 | Sundararajan Athijegannathan | P3 | Resolved | Fixed | team |
function func(arg) {
(function() { print(eval('this')); }).call(arg);
}
func(this);
func({});
func({ toString: function() "foo" });
func(new java.lang.Vector());
Expected:
[object global]
[object Object]
foo
[]
Last one is toString value on empty Vector instance
Actual output:
[object global]
[object Object]
foo
[object global]
(function() { print(eval('this')); }).call(arg);
}
func(this);
func({});
func({ toString: function() "foo" });
func(new java.lang.Vector());
Expected:
[object global]
[object Object]
foo
[]
Last one is toString value on empty Vector instance
Actual output:
[object global]
[object Object]
foo
[object global]
- backported by
-
JDK-8080291 Wrong 'this' bound to eval call within a function when caller's 'this' is a Java object
-
- Resolved
-
-
JDK-8081196 Wrong 'this' bound to eval call within a function when caller's 'this' is a Java object
-
- Resolved
-
-
JDK-8085586 Wrong 'this' bound to eval call within a function when caller's 'this' is a Java object
-
- Resolved
-
-
JDK-8087071 Wrong 'this' bound to eval call within a function when caller's 'this' is a Java object
-
- Resolved
-
-
JDK-8138465 Wrong 'this' bound to eval call within a function when caller's 'this' is a Java object
-
- Resolved
-