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

Bug 330304

Summary: [compiler] AIOOBE in Scanner.internalScanIdentifierOrKeyword()
Product: [Tools] Objectteams Reporter: Stephan Herrmann <stephan.herrmann>
Component: OTJAssignee: Stephan Herrmann <stephan.herrmann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 0.8   
Target Milestone: 0.8 M4   
Hardware: Other   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Test & fix none

Description Stephan Herrmann CLA 2010-11-15 19:45:55 EST
The OT/J Scanner suffers from a variant of Bug 330081.
Any of the following words will cause AIOOBE:
  thsupe
  thrsup
  throsu

the check for "throws" should branch to checking "tsuper" after
incrementing index more than once.
Comment 1 Stephan Herrmann CLA 2010-11-16 13:31:09 EST
Created attachment 183253 [details]
Test & fix

Correction: 
 the check for "throws" should NOT branch to checking "tsuper" 
 after incrementing index more than once.

The patch contains a test and a fix in both Scanner and PublicScanner.
Comment 2 Stephan Herrmann CLA 2010-11-16 13:40:43 EST
Committed as r1035 f.
Comment 3 Stephan Herrmann CLA 2010-12-16 14:43:44 EST
Verified for M4 using build 201012150343