Unable to iterate over Enums...

Walter Higgins walter.higgins at gmail.com
Fri Jan 24 15:37:07 PST 2014

Say I have a Java Enum type, In previous versions of the Javascript engine,
I could iterator over each value like this...

for (var m in MaterialEnum){
    if (MaterialEnum[m] &&

In Nashorn, this is no longer possible. Is this a bug or is it by design?

Walter Higgins
Mobile: (+353) 086 8511600
Website: http://walterhiggins.net/

More information about the nashorn-dev mailing list