Accessing Sub-packages using array index notation

Walter Higgins walter.higgins at gmail.com
Tue Jan 14 07:35:06 PST 2014


Hi,

Will nashorn include support for accessing package sub-packages using the
array index notation?
What I mean is - prior to Nashorn, I could access the java.net package like
this in javascript...

jjs> java['net']

... but with Nashorn, this feature is no longer available. I have to access
the package using the dot-notation only.  e.g.

jjs> java.net

Are there plans to support the array index notation for accessing packages
in the final release?

-- 
Walter Higgins
Website: http://walterhiggins.net/


More information about the nashorn-dev mailing list