Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 330304 - [compiler] AIOOBE in Scanner.internalScanIdentifierOrKeyword()
Summary: [compiler] AIOOBE in Scanner.internalScanIdentifierOrKeyword()
Status: VERIFIED FIXED
Alias: None
Product: Objectteams
Classification: Tools
Component: OTJ (show other bugs)
Version: 0.8   Edit
Hardware: Other Linux
: P3 normal (vote)
Target Milestone: 0.8 M4   Edit
Assignee: Stephan Herrmann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-15 19:45 EST by Stephan Herrmann CLA
Modified: 2010-12-16 14:43 EST (History)
0 users

See Also:


Attachments
Test & fix (6.37 KB, patch)
2010-11-16 13:31 EST, Stephan Herrmann CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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