RFR: 8003246: Add Supplier to ThreadLocal (original) (raw)

David Holmes david.holmes at oracle.com
Thu Dec 6 05:10:55 UTC 2012


On 6/12/2012 5:39 AM, Akhil Arora wrote:

This patch adds a constructor to ThreadLocal to supply initial values using the new Supplier functional interface. Please review. This work was done by Jim Gish.

http://cr.openjdk.java.net/~akhil/8003246.0/webrev/ http://bugs.sun.com/bugdatabase/viewbug.do?bugid=8003246

Has anyone actually established that this is a useful addition to make? What is the acceptance criteria for adding these new mechanisms to existing classes? Was there a CCC request for this?

We need to be very wary of unnecessary bloat.

David

Thanks



More information about the core-libs-dev mailing list