-
Bug
-
Resolution: Fixed
-
P5
-
None
-
None
-
b29
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8085700 | emb-9 | Sundararajan Athijegannathan | P5 | Resolved | Fixed | team |
JDK-8064204 | 8u45 | Sundararajan Athijegannathan | P5 | Resolved | Fixed | b01 |
JDK-8056164 | 8u40 | Sundararajan Athijegannathan | P5 | Resolved | Fixed | b04 |
JDK-8070441 | emb-8u47 | Sundararajan Athijegannathan | P5 | Resolved | Fixed | team |
{code}
function () { // line 1
print("hello from nashorn");
}
print(this["L:1"]); // print function on line 1
{code}
expected:
undefined
actual:
function () { // line 1
print("hello from nashorn");
}
{code:title=--print-parse}
[<unknown>] function :program() {
[|1|];
var L:1 = [<unknown>] function L:1() {
[|2|];
print("hello from nashorn");
}
[|5|];
print(this["L:1"]);
}
{code}
Note that this is a Nashorn syntax extension, and it does not happen if function is assigned to a variable.
function () { // line 1
print("hello from nashorn");
}
print(this["L:1"]); // print function on line 1
{code}
expected:
undefined
actual:
function () { // line 1
print("hello from nashorn");
}
{code:title=--print-parse}
[<unknown>] function :program() {
[|1|];
var L:1 = [<unknown>] function L:1() {
[|2|];
print("hello from nashorn");
}
[|5|];
print(this["L:1"]);
}
{code}
Note that this is a Nashorn syntax extension, and it does not happen if function is assigned to a variable.
- backported by
-
JDK-8056164 Anonymous function statements leak internal function names into global scope
-
- Resolved
-
-
JDK-8064204 Anonymous function statements leak internal function names into global scope
-
- Resolved
-
-
JDK-8070441 Anonymous function statements leak internal function names into global scope
-
- Resolved
-
-
JDK-8085700 Anonymous function statements leak internal function names into global scope
-
- Resolved
-