Hi,
Trying to access a public enum in a Java class from JavaScript like Packages.com.mycompany.MyClass.MyEnum, but unfortunatly it fails with the following error:
org.mozilla.javascript.EvaluatorException: Java class "com.mycompany.MyClass" has no public instance field or method named "MyEnum". (internal_anon#1)
Now, I'm using Rhino 1.7R2 and unfortunatly I cannot upgrade. But I wonder if upgrading would help. I tried searching bugzilla to find anything on the topic and also the Google Groups, but no avail.
Note: I'm trying to dynamically just access any public enum on any public Java class