Bug 95544 - Reconciling blocks when attempting to organize imports
Summary: Reconciling blocks when attempting to organize imports
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: performance
Depends on:
Blocks:
 
Reported: 2005-05-17 09:30 EDT by Tobias Widmer CLA
Modified: 2006-03-30 06:21 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Widmer CLA 2005-05-17 09:30:01 EDT
I20050513-1415:

Steps to reproduce:
- Create workspace with all Eclipse plugins as linked binary plugin projects
- Create new plugin project
- Add all workspace plugins as dependencies
- Create new class Test
- Paste all members of class org.eclipse.jdt.internal.ui.javaeditor.JavaEditor 
into the test class
- Invoke Organize Imports

-> Workspace freezes. Organize imports is blocked in 
ICompilationUnit#reconcile because the JavaRecondiler holds the lock for the 
cu. The reconciling of the test class takes a very long time
Comment 1 Jerome Lanneluc CLA 2005-05-17 09:33:35 EDT
Moving to JDT Text for comment as the JavaReconciler belongs there.
Comment 2 Dani Megert CLA 2005-05-17 09:52:38 EDT
This report is about ICompilationUnit#reconcile(...) taking very long. I talked
to Tobias and he confirms that the reconcile thread was working inside
ICompilationUnit#reconcile(...) and he had to kill the workbench after waiting
for more than 5 minutes. He also confirms that it was not a deadlock.

Even if Organize Imports wouldn't sync on the CU the reconciling taking so long
 causes major inconsistencies in UI, e.g. views like Package Explorer and
Outline being totally out of sync.
Comment 3 Jerome Lanneluc CLA 2006-03-30 06:21:52 EST
Reconcile has been greatly imporved lately. Please reopen if this is still an issue.