This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 47813 - [40cat] Fix all imports deletes all my imports by mistake
Summary: [40cat] Fix all imports deletes all my imports by mistake
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Daniel Prusa
URL:
Keywords:
: 48100 48444 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-08-24 16:03 UTC by _ rkubacki
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ rkubacki 2004-08-24 16:03:25 UTC
I edited a source file by writing
'ErrorManager.getD' and find that code completion
is not working (there are two possible EM on
classpath) so tried to fix this by importing the
right one with Alt-Shift-F. The action messages
that all imports were fixed but it not truth - all
imports were deleted and I had no chance to choose
the correct ErrorManager to be imported.
Comment 1 Martin Matula 2004-08-24 16:14:46 UTC
This is most likely due to the fact that the code was syntactically
broken thus the elements could not be resolved correctly. Dane please
fix this (probably by displaying an informational message that the
source is syntactically broken, rather than trying to fix the imports
and mess them up instead).
Comment 2 Martin Matula 2004-08-30 09:56:42 UTC
*** Issue 48100 has been marked as a duplicate of this issue. ***
Comment 3 psuk 2004-08-30 12:51:54 UTC
Adding [40cat] as the duplicated Issue 48100 has the prefix.

+ copy from Issue 48100
-------------
It deletes import statements for Exceptions and classes that only
occur in the catch-block.
-------------
Comment 4 Daniel Prusa 2004-08-31 16:07:51 UTC
Checking in JavaFixAllImports.java;
/cvs/editor/src/org/netbeans/modules/editor/java/JavaFixAllImports.java,v
 <--  JavaFixAllImports.java
new revision: 1.16; previous revision: 1.15
Comment 5 Miloslav Metelka 2004-09-03 14:45:11 UTC
*** Issue 48444 has been marked as a duplicate of this issue. ***
Comment 6 Jiri Prox 2005-07-12 09:47:10 UTC
Verified in 4.2 (200507110943)