Re: Bug: ClassCastException for arguments variable (plain JavaScript)

2016-09-16 Thread Sundararajan Athijegannathan
Filed a bug: https://bugs.openjdk.java.net/browse/JDK-8166186 -Sundar On 9/15/2016 6:32 PM, Esben Andreasen wrote: > Nashorn can produce a ClassCastException when executing a plain > JavaScript program. > > The exception happens in a situation where the arguments variable is > used in conjunctio

Bug: ClassCastException for arguments variable (plain JavaScript)

2016-09-15 Thread Esben Andreasen
Nashorn can produce a ClassCastException when executing a plain JavaScript program. The exception happens in a situation where the arguments variable is used in conjunction with call and apply. ## Observed behavior Code: ``` function F(SOME_PARAMETER) { Function.prototype.call.apply(G, argumen