Bug 59050 Dead lock in JavaReconciler
Using build I200404131323. I was editing several files and haven't save them immediately when my eclipse hanged infinitely... Looking at console, the exception seems to show that I was trying to open a popup-menu on a new created class, but I'm not completely sure that dead-lock occurred exactly at this moment. I'll add complete console output including VM Dump Thread which identifies the dead-lock... Set severity 'critical' as I have to cancel my eclipse session without saving and lost my modifications in modified editors...
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
JavaPlugin.log(e);
				}
				break;	
			}
		}
		
		/*
		 * @see org.eclipse.jface.text.link.ILinkedModeListener#left(org.eclipse.jface.text.link.LinkedModeModel, int)
		 */
		public void left(LinkedModeModel environment, int flags) {
			
			final BracketLevel level= (BracketLevel) fBracketLevelStack.pop();
			if (flags != ILinkedModeListener.EXTERNAL_MODIFICATION)
				return;
			
			final ISourceViewer sourceViewer= getSourceViewer();
			final IDocument document= sourceViewer.getDocument();
			if (document instanceof IDocumentExtension) {
				IDocumentExtension extension= (IDocumentExtension) document;
				extension.registerPostNotificationReplace(null, new IDocumentExtension.IReplace() {
				
					public void perform(IDocument d, IDocumentListener owner) {
						if ((level.fFirstPosition.isDeleted || level.fFirstPosition.length == 0) && !level.fSecondPosition.isDeleted && level.fSecondPosition.offset == level.fFirstPosition.offset) {
							try {
								document.replace(level.fSecondPosition.offset, level.fSecondPosition.length, null);
							} catch (BadLocationException e) {
							}
						}
						
						if (fBracketLevelStack.size() == 0) {