Bug 5209 - Replace from local history: BadLocationException
Summary: Replace from local history: BadLocationException
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows NT
: P2 normal (vote)
Target Milestone: 2.0 M1   Edit
Assignee: Andre Weinand CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-24 11:31 EDT by Dani Megert CLA
Modified: 2001-12-14 13:11 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dani Megert CLA 2001-10-24 11:31:14 EDT
1. Create a Java Project with JUnit
2. Open Test.java
3. Delete all source and save
4. From the Outline's context menu select "Add from local history"
==> Internal Error dialog pops

Log: Wed Oct 24 17:27:18 GMT+02:00 2001
4 org.eclipse.jdt.ui 1 Internal Error
org.eclipse.jface.text.BadLocationException
	at 
org.eclipse.jface.text.AbstractLineTracker.getLineDelimiter(AbstractLineTracker.
java:491)
	at 
org.eclipse.jface.text.AbstractDocument.getLineDelimiter(AbstractDocument.java:5
28)
	at 
org.eclipse.jdt.internal.ui.compare.JavaAddElementFromHistory.run(JavaAddElement
FromHistory.java:161)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:451)
	at 
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionCont
ributionItem.java:407)
	at 
org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent(ActionContribu
tionItem.java:361)
	at 
org.eclipse.jface.action.ActionContributionItem.access$0(ActionContributionItem.
java:352)
	at 
org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent(Actio
nContributionItem.java:47)
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java(Compiled 
Code))
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java(Compiled 
Code))
	at 
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java(Compiled Code))
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java(Compiled 
Code))
	at 
org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java(Compiled Code))
	at org.eclipse.ui.internal.Workbench.run(Workbench.java:658)
	at 
org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:82
0)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:285)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:151)
	at org.eclipse.core.launcher.Main.run(Main.java:433)
	at org.eclipse.core.launcher.UIMain.main(UIMain.java:52)
	at ZRHMain.main(ZRHMain.java:14)
Comment 1 Andre Weinand CLA 2001-12-14 13:11:05 EST
fixed for 20011220.