Path: csiph.com!aioe.org!.POSTED!not-for-mail From: =?UTF-8?Q?Arne_Vajh=c3=b8j?= Newsgroups: comp.lang.java.programmer Subject: Re: missing import java.lang.Comparable Date: Thu, 7 Jul 2016 16:56:48 -0400 Organization: Aioe.org NNTP Server Lines: 24 Message-ID: References: <86lh1o4eku.fsf@kwarg.de> <11952827-9dd1-48e7-b835-722a38023ce5@googlegroups.com> NNTP-Posting-Host: 7SK6yTFfqwlIPNBLl3l7Qg.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.java.programmer:34777 On 6/30/2016 10:19 AM, Eric Sosman wrote: > On 6/30/2016 9:37 AM, Eric Douglas wrote: >> On Thursday, June 30, 2016 at 9:24:14 AM UTC-4, Martin Gregorie wrote: >>>> »No.« only in the special case that you do not have a »System.class« >>>> file in your directory. >>>> >>> s/you do not have/you have/ >> >> Right, you should need an import statement for anything in java.lang >> if you use their class names for one of your classes. >> I have a unique identifier in front of all my class names. > > Isn't that what the package name is for? It is what package names and the convention of only importing single classes not entire packages with * is for. But since java.lang is implicit wildcard imported, then I would consider class names in that to be a special case and try to avoid. Arne