Accessing Sub-packages using array index notation

Hannes Wallnoefer hannes.wallnoefer at
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:
> 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 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>
> Are there plans to support the array index notation for accessing packages
> in the final release?

More information about the nashorn-dev mailing list