Results for “java function return string type command site:bugs.java.com python”
bugs.java.com
Bug ID: JDK-8015323 Type annotations on method incorrectly written...
If class InnerAnnon is instanciated, type annotations on ia_m1() are incorrectly written to classfile. They are all written as Runtime(In)VisibleAnnotations, RuntimeVisibleAnnotations1: #18(): METHOD_RETURN. Compile this as Test1.java and run javap -v Test1$1$InnerAnon.
bugs.java.com
Bug ID: JDK-8192841 Collection.toArray() spec should be explicit about...
Java SE. Community. Bug Database.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.)
bugs.java.com
Bug ID: JDK-8160406 Collection.toArray() spec should be explicit about...
Description. Collection.toArray() is specified to return an object of type Object[], but since arrays are covariant, that requirement is met by any array of a subtype of Object, for example, String[]. It's subtle, but it's clearly, if not explicitly, a bug to return an array of a subtype. See JDK-6260652.