nashorn not compliant with ecma-262/5.1 for package access?
Walter Higgins
walter.higgins at gmail.com
Tue Jan 14 08:36:10 PST 2014
Nashorn does not seem to conform to the ecma spec for property accessors
for Package sub-package access...
For example, the results of these 2 expressions differ...
jjs> java['net']
undefined
jjs> java.net
[JavaPackage java.net]
The bracket notation ([ ]) worked for accessing sub-packages in javascript
in Java6 & Java7.
http://www.ecma-international.org/ecma-262/5.1/#sec-11.2.1
--
Walter Higgins
Mobile: (+353) 086 8511600
Website: http://walterhiggins.net/
More information about the nashorn-dev
mailing list