commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Chaffee / Purple Technology <>
Subject Re: import * vs explicit debate
Date Thu, 03 Apr 2003 00:45:27 GMT
On Wed, Apr 02, 2003 at 06:52:26PM -0500, __matthewHawthorne wrote:
> But later on, if the class org.apache.Thing is created, the code will no
> longer compile, right?


> Isn't this an untouchable reason for using explicit imports?

No; it's a reason for doing a full clean build and unit test run
before checking in any changes.  

This way whoever added org.apache.Thing, or updated the library that
added it, is responsible for not breaking everyone else's build.

In this case causing a compiler error is good; the error will mention
the name of the class that was just added; and the adder will say "oh,
duh" and know what to do to fix it.  More troublesome are interface
changes that are silently absorbed but cause semantic changes.

Alex Chaffee                     
Purple Technology - Code and Consulting
jGuru - Java News and FAQs       
Gamelan - the Original Java site 
Stinky - Art and Angst           

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message