On 2008.11.13., at 21:02, Greg Brown wrote:

> I'm also interested in using JavaScript in an applet. I can't use the
> version of Rhino that ships with Java 6 because Apple doesn't include
> it (and Apple doesn't support Java 6 in applets yet anyways). Does
> anyone know if it is possible to use Mozilla's Rhino implementation in
> "unoptimized" (interpreted) mode to implement a single interface at a
> time without requiring class generation?

Trouble is, Rhino's code for interface implemention actually generates  
bytecode; it doesn't go i.e. through java.lang.reflect.Proxy (its  
codegen capabilities predate Java 1.3). So regardless of interpreted  
mode, Rhino will need to have the ability to load generated code if  
you're using adapters...

> If Mozilla Rhino always uses class generation, is Sun's version
> available for download separately anywhere, so I can include it with
> an applet?

You can always get it from the OpenJDK source code.

Attila.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "JVM 
Languages" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jvm-languages?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to