Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail From: Lew Newsgroups: comp.lang.java.programmer Subject: Re: java.lang vs java.util Date: Sat, 02 Apr 2011 01:52:39 -0400 Organization: albasani.net Lines: 27 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.albasani.net mvmdmTn854CxDMu2Vfiri33VL9W00ag7O+5EnttrVL8gru22/Dj8wEu6rF4nkStPJtkkvotmnzsxJqXs9+K2ag== NNTP-Posting-Date: Sat, 2 Apr 2011 05:52:40 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="vonGmCt7QlXvR0XxMVJ7wmT7gUGqEoIFFRmvArVbme8pL36zOJB2gLe1zCeqofzlVVogfR7wmUgzK6YwGfuySCdyQwIztZH1hpP2KLEkmZ3yhw+l/cJnfMdYLHzI3Iy3"; mail-complaints-to="abuse@albasani.net" User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110223 Thunderbird/3.1.8 In-Reply-To: Cancel-Lock: sha1:pAEnAbPtXdK1oksoU5EDB3kUOhI= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:2720 On 04/02/2011 12:23 AM, Patricia Shanahan wrote: > On 4/1/2011 9:11 PM, Lawrence D'Oliveiro wrote: >> Surprising to see something defined in java.lang >> depend on >> something defined in java.util >> . >> >> Surely the hierarchy should go the other way? Not if it wants to be consistent with http://download.oracle.com/javase/6/docs/api/ don't'cha think? And the so-called "hierarchy" of java.util and java.lang is that they are equal. The language reserves for itself the entire panoply of java.* and javax.* packages. > I think Iterable may make it into java.lang because of its significance > in the foreach statement. That seems to go against Java's history of conservatism with respect to backward compatibility. And why should it? java.lang and java.util are equal. The language reserves for itself the entire panoply of java.* and javax.* packages. -- Lew