Bug 14932 - StringIndexOutOfBoundsException opening Java file
Summary: StringIndexOutOfBoundsException opening Java file
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: Other Linux-Motif
: P1 blocker (vote)
Target Milestone: ---   Edit
Assignee: Nick Edgar CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 14980 15006 15011 15013 15094 15138 15336 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-04-30 11:51 EDT by Knut Radloff CLA
Modified: 2002-05-13 10:51 EDT (History)
7 users (show)

See Also:


Attachments
log file (2.67 KB, text/plain)
2002-04-30 11:52 EDT, Knut Radloff CLA
no flags Details
log file with file open walkback (3.63 KB, text/plain)
2002-04-30 11:59 EDT, Knut Radloff CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Knut Radloff CLA 2002-04-30 11:51:57 EDT
build 20020426

-load org.eclipse.swt and org.eclipse.swt.tests (from the repository in my case)
-double click org.eclipse.swt.tests.junit.Test_org_eclipse_swt_widgets_Table
->get the attached walkback

This works on Windows. I'm going to zip the workspace in case there's something 
strange about it.
Comment 1 Knut Radloff CLA 2002-04-30 11:52:24 EDT
Created attachment 725 [details]
log file
Comment 2 Knut Radloff CLA 2002-04-30 11:58:21 EDT
The attachment actually shows the walkback I get when I pull down the file menu.
The walkback I get when I open the file is similar.
Comment 3 Knut Radloff CLA 2002-04-30 11:59:06 EDT
Created attachment 726 [details]
log file with file open walkback
Comment 4 Nick Edgar CLA 2002-04-30 13:08:47 EDT
Could you try:
- in the prefs, change the recently used files list length to 0
- apply
- change back to 4
- try again?

Comment 5 Nick Edgar CLA 2002-04-30 13:09:07 EDT
Before you do this, jot down the current contents of the file list.
Comment 6 Knut Radloff CLA 2002-04-30 14:21:14 EDT
The walkback occurs regardless of whether the recent file list is empty or not.
Doing the 0, apply, 4 retry does not help - still get the walkback.

Note that I do not get a walkback when I open different, longer files 
org.eclipse.swt.tests.junit.Test_org_eclipse_swt_widgets_TabItem.

The shorter org.eclipse.swt.tests.junit.Test_org_eclipse_swt_widgets_Text on 
the other hand gives a StringIndexOutOfBounds -5. Looks like the algorithm 
fails for this particular scenario. 
I wonder if it's related to path separators since it only happens on Linux.
Comment 7 Nick Edgar CLA 2002-04-30 15:09:15 EDT
Was able to reproduce this on Windows using M5' build.
Investigating...
Comment 8 Nick Edgar CLA 2002-05-01 12:16:33 EDT
*** Bug 15011 has been marked as a duplicate of this bug. ***
Comment 9 Nick Edgar CLA 2002-05-01 12:17:17 EDT
*** Bug 15006 has been marked as a duplicate of this bug. ***
Comment 10 Nick Edgar CLA 2002-05-01 12:17:38 EDT
Fix submitted for rebuild of 20020430.
Comment 11 Nick Edgar CLA 2002-05-01 12:20:36 EDT
*** Bug 14980 has been marked as a duplicate of this bug. ***
Comment 12 Martin Aeschlimann CLA 2002-05-01 12:54:52 EDT
*** Bug 15013 has been marked as a duplicate of this bug. ***
Comment 13 Nick Edgar CLA 2002-05-01 15:11:31 EDT
Fixed in today's rebuild.
Comment 14 Nick Edgar CLA 2002-05-02 11:02:50 EDT
*** Bug 15094 has been marked as a duplicate of this bug. ***
Comment 15 Nick Edgar CLA 2002-05-02 15:33:37 EDT
*** Bug 15138 has been marked as a duplicate of this bug. ***
Comment 16 Nick Edgar CLA 2002-05-13 10:51:32 EDT
*** Bug 15336 has been marked as a duplicate of this bug. ***