Path: csiph.com!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: markspace <-@.> Newsgroups: comp.lang.java.programmer Subject: Re: Proposed new Java feature Date: Sat, 02 Jun 2012 15:55:37 -0700 Organization: A noiseless patient Spider Lines: 16 Message-ID: References: <4fca6c4f$0$35595$742ec2ed@news.sonic.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sat, 2 Jun 2012 22:55:40 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="GC1G+YEBq7tNUwQYTaeFcA"; logging-data="1982"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+FSVBBbMlWNFM4wQn4+YFSQ4/2dDW/DSE=" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 In-Reply-To: <4fca6c4f$0$35595$742ec2ed@news.sonic.net> Cancel-Lock: sha1:bHJLsrZ5jIWENCSdTeTShJ/HYys= Xref: csiph.com comp.lang.java.programmer:15011 On 6/2/2012 12:41 PM, Kevin McMurtrie wrote: > Forcing the ThreadLocals out of a Thread would be bad. There's still > too much crap code floating around that uses ThreadLocal for parameter > passing. Just because there's "crap out there" doesn't mean a new feature isn't useful or a good idea. No one requires you to call "removeLocals" or whatever method in your code. Obviously, no "crap out there" currently calls such a method, unless you're willing to muck with reflection. So what harm does adding something useful do? That someone *might* use it inappropriately? Come on, that describes every single method in the Java API.