Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 84349

Summary: Opening a class with a SWT Shell throws StringIndexOutOfBoundsException
Product: z_Archived Reporter: Peter Walker <walkerp>
Component: VEAssignee: Jonathan Stinton <jstinton>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P1    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on: 84398    
Bug Blocks:    
Attachments:
Description Flags
stack trace none

Description Peter Walker CLA 2005-02-03 12:26:45 EST
On latest code in VE 1.1, create a visual class that uses a Shell, an exception
is thrown. See .log attachment.
Comment 1 Peter Walker CLA 2005-02-03 12:27:36 EST
Created attachment 17661 [details]
stack trace
Comment 2 Srimanth CLA 2005-02-03 18:31:35 EST
This is actually a defect with JDT IScanner(84398) implementation where reusing
a IScanner causes a problem. The IScanner implementation doesnt clean up once it
is told to scan a new string. Having the old values causes the problem for the
new source.
Putting in a temporary fix for cleaning up the internal values. This needs to be
removed once 84398 gets resolved. Releasing class DefaultScannerFactory.
Comment 3 Srimanth CLA 2005-02-09 12:48:32 EST
JDT bug 84398 has been fixed in Eclipse 3.1M4. This problem should go away once
VE steps up to Eclipse 3.1. Need to verify and close this defect after the move
to 3.1.
Comment 4 Jonathan Stinton CLA 2005-03-14 15:18:47 EST
Using Eclipse 3.1m5a and VE N20050311 this bug has been verified as fixed.
Comment 5 Jonathan Stinton CLA 2005-04-25 15:07:23 EDT
Verified in VE 1.1M1 RC1