+1 from me - this bites me quite often and Valentin's solution looks fine.

Cheers,
Dan

> -----Original Message-----
> From: Edoardo Comar [mailto:[EMAIL PROTECTED]]
> Sent: 19 December 2001 10:55
> To: [EMAIL PROTECTED]
> Subject: RE: [Eap-list] Optimize imports: problems with wrong packages
> 
> 
> > -----Original Message-----
> > From: Valentin Kipiatkov [mailto:[EMAIL PROTECTED]] 
> > Sent: 19 December 2001 10:34
> > To: [EMAIL PROTECTED]
> > Subject: Re: [Eap-list] Optimize imports: problems with 
> wrong packages
> > 
> > 
> > It's not a bug actually, it's a feature. IDEA used to remove 
> > all imports of unknown classes/packages. This caused IDEA 
> > could easily damage the code by import optimizing in case 
> > some of the classes are not accessible (for example, when 
> > user forgot to add some of library jars to the project). Then 
> > we decided to leave such imports. That seems to be more 
> > correct because Optimize import is intended to just beautify 
> > the code, not to correct uncompilable code.
> > 
> > But now, even better solution came to my mind. We could leave 
> > imports of unknown classes/packages ONLY when there are any 
> > unknown references in the code. Otherwise we can safely 
> > remove them. What do you think?
> > 
> > Best regards,
> > Valentin Kipiatkov
> 
> GREAT! Please go ahead with it ASAP :-)
> 
> Edo
> 
> 
> _______________________________________________
> Eap-list mailing list
> [EMAIL PROTECTED]
> http://www.intellij.com/mailman/listinfo/eap-list
> 


***************************************************************************************
This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. 
If you have received this email in error please notify [EMAIL PROTECTED] 
immediately.

This footnote also confirms that this email message has been swept for the 
presence of computer viruses.
***************************************************************************************

_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list

Reply via email to