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 61527 - 'Fix Imports' hangs, status bar keeps showing "Fixing Imports"
Summary: 'Fix Imports' hangs, status bar keeps showing "Fixing Imports"
Status: RESOLVED WORKSFORME
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-28 23:52 UTC by dhinojosa
Modified: 2007-11-05 13:44 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 dhinojosa 2005-07-28 23:52:40 UTC
This is on NetBeans 4.1 and I am running a Web Application with an existing Ant
Script. But that does not matter.  The problem, after playing with this, is that
the 'Fix imports' tool breaks when you are implementing an interface that
happens to have the same name in common with other interfaces on the classpath.  

In order to recreate this, you can use an existing project or create a new one.
 What I did is for the sake of simplicity is that I created a regular java
application project.  In there I created a class called Test.  In the class
called Test, in the class header, I added "implements Action". There happens to
be two interfaces in the standard java classpath
(com.sun.corba.se.spi.orbutil.fsm.Action and javax.swing.Action).  When you are
done typing "implements Action", you will see that Netbeans automatically adds
com.sun.corba.se.spi.orbutil.fsm.Action.  Now remove that import statement, the
one that says "import com.sun.corba.se.spi.orbutil.fsm.Action", and now do a Fix
Imports (I did the popup menu by rightclicking and chose fix imports).  You will
notice that is hangs.  

Took me a while to figure out but there it is. I hope that you still would
consider this a P1 problem because many Web framworks make heavy use of an
Action Interface.

Thanks
Comment 1 dhinojosa 2005-08-18 21:13:50 UTC
Changed from 'ui' to 'ide' component since the topic has been ignored.
Comment 2 Pavel Rehak 2005-08-30 08:44:15 UTC
Reassigning to Editor for evaluation.
Comment 3 Martin Roskanin 2005-08-30 10:30:06 UTC
Could you please attach full thread dump? (you can get it via CTRL+Break in
console) Thanks...
Comment 4 Miloslav Metelka 2005-09-07 09:50:56 UTC
Closing as worksforme. Please reopen if the problem reappears.