Results for “java function return array value example code find site:bugs.java.com page”
bugs.java.com
Bug ID: JDK-4837564 (bf) Please make DirectByteBuffer performance...
Also, we havn't found any code that depends or requires page aligment. The specification makes no reference to this implementation detail, so thisshould just be a simple matter of code removal/simplification.
bugs.java.com
Bug ID: JDK-5072831 (coll) Please add Collections.toArray
An attempt to salvage the implementation is to code like this: return c.<T>toArray((T[])Array.newInstance(t, 0)); but that pays a penalty for an extra empty array allocation for each call to toArray.