Community
Participate
Working Groups
Build ID: I20070323-1616 Steps To Reproduce: I have encountered the problem when I tried to use the "Open Type" dialog to find a class - it was just displaying "Searching: 9%" indefinitely until I killed the Eclipse process. I couldn't build the test workspace that could expose the bug, but the problem can be reproduced in a test case: DiskIndex index = new DiskIndex("390905651.index"); // attached index file index.initialize(true); index.bufferEnd = 2048; // assign the value with a debugger or make the field non-private index.readDocumentName(998); // never returns More information: I'm attaching the thread stack trace with variable values and the index file. Looks like there is a possibility for an infinite loop inside the org.eclipse.jdt.internal.core.index.DiskIndex.readStreamChars method. Moreover, DiskIndex.bufferEnd is never initialized when DiskIndex.readDocumentName is called.
Created attachment 63198 [details] Stack trace
Created attachment 63199 [details] Index file to reproduce the problem
*** This bug has been marked as a duplicate of bug 178551 ***
Verified for 3.3M7 for I20070427-0010