-
Bug
-
Resolution: Fixed
-
P3
-
8u60, 9
The document "Using Java From Scripts" http://docs.oracle.com/javase/8/docs/technotes/guides/scripting/prog_guide/javascript.html has erroneous information regarding array handling. It states that arrays need to be explicitly converted to Java arrays when passed as parameter types, but that is not true. In 3.10 "Mapping Data Types" it says:
"For example, arrays must be explicitly converted, ..."
The first part of this is incorrect. Correct statement would be:
"Arrays are automatically converted to Java array types, java.util.List, java.util.Collection, java.util.Queue and java.util.Deque type, ..."
"For example, arrays must be explicitly converted, ..."
The first part of this is incorrect. Correct statement would be:
"Arrays are automatically converted to Java array types, java.util.List, java.util.Collection, java.util.Queue and java.util.Deque type, ..."