[7u] Request for approval for 8005460: [findbugs] Probably returned array should be cloned

Weijun Wang weijun.wang at oracle.com
Wed Apr 10 21:24:01 PDT 2013


Hi All

This is a request to backport a jdk8 fix into jdk7u-dev.

     8005460: [findbugs] Probably returned array should be cloned

It's about sun.security.krb5.PrincipalName::getNameStrings returning the 
internal data without a clone, although a comment in the code explicitly 
warns to clone the array before passing it out.

The fix is already included in jdk8 as:

    http://hg.openjdk.java.net/jdk8/tl/jdk/rev/6f8e1428f7c3
    Reviewed-by: xuelei

The patch for jdk7u is identical to the one in jdk8.

Thanks
Weijun



More information about the jdk7u-dev mailing list