JDK-4030374 - Java Issue Tracker
Feb 5, 1997 ... ... array before the superclass constructor runs. This is a problem because Java allows subclass methods to be run from the superclass constructor.
Feb 5, 1997 ... ... array before the superclass constructor runs. This is a problem because Java allows subclass methods to be run from the superclass constructor.
... array whose component type does not have a canonical name)." In other words, a common pattern for methods in java.lang.Class is to first define the behavior ...
JavaScript programs that reference java.lang.Class objects are now limited to the following methods: ... objects usually expect arrays to expose the java.
Arrays = java.util.Arrays; print(Arrays.asList("hello world".split(' '))); The above script works fine with jdk8u31 but fails on jdk8u40 early access build and jdk9 with the following stack traceIt starts to feel like we solved this problem at the wrong level with NashornBeansLinker.asType().
The Collection.toArray() method returns Object[] but it doesn't make clear that the runtime type of the returned array must be Object[]. (Oddly, that is specified in toArray(T[]) which is in the wrong place.)