Accessing Sub-packages using array index notation

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


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 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.


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

Walter Higgins

More information about the nashorn-dev mailing list