Weird ClassCastException

Rick Bullotta rick.bullotta at thingworx.com
Thu Nov 7 06:41:06 PST 2013


"Non Null" is exactly what we do internally as well for converting the non-obvious data types to Boolean...

-----Original Message-----
From: nashorn-dev-bounces at openjdk.java.net [mailto:nashorn-dev-bounces at openjdk.java.net] On Behalf Of Tal Liron
Sent: Thursday, November 07, 2013 8:36 AM
To: nashorn-dev at openjdk.java.net
Subject: Re: Weird ClassCastException

That's almost exactly what I wrote before, but I sent it to Rick directly by mistake. :)

On 11/07/2013 07:47 PM, Attila Szegedi wrote:
> Well, the issue here is that according to JavaScript semantics, every 
> object has a boolean value, and that boolean value is true, so the 
> conversion is definitely valid going from Java to JavaScript, although 
> you can argue whether it'd merit to be qualified as "regretfully 
> valid" :-)
>



More information about the nashorn-dev mailing list