Re: Unable to iterate over Java object properties using for (var p in object) construct

2014-03-09 Thread A. Sundararajan
Iterating properties of java objects - both fields, methods - is a rhino specific feature. This is not supported by nashorn. If you've a java array or Iterable, JS for and for..each will do the expected - namely iterate over the array/collection. Thanks -Sundar On Sunday 09 March 2014 02:55

Unable to iterate over Java object properties using for (var p in object) construct

2014-03-09 Thread Walter Higgins
In Java 7 I can iterate over the properties/methods of a Java object using this notation... for (var p in javaObject) { print(p); } In java 8 this no longer works. for (var p in javaObject) { print(p); } ...doesn't result in the for loop block being executed (there are no properties). How