Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Type cast java object

910 views
Skip to first unread message

payal_ncsu

unread,
Oct 5, 2007, 2:28:15 PM10/5/07
to
Hi,

Does anyone know how to type cast a java object inside javascript
using rhino?
var x = (A) B; does not work
Where B and A are valid java classes and B can be type cast to A in
java. B has been imported.

Thanks,
PC

Norris Boyd

unread,
Oct 5, 2007, 9:41:30 PM10/5/07
to

There are no casts in JavaScript because it's dynamically typed so
there's no need to declare the runtime type to the static type system.

--N

0 new messages