Accessing Sub-packages using array index notation
hannes.wallnoefer at oracle.com
Tue Jan 14 08:23:47 PST 2014
This actually should work - it's a bug in the java package importer.
I've filed a bug:
Am 2014-01-14 16:35, schrieb Walter Higgins:
> 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
> 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?
More information about the nashorn-dev