Bug 167546 - ArrayIndexOutOfBoundsException with the "Generate Getters and Setters" feature
Summary: ArrayIndexOutOfBoundsException with the "Generate Getters and Setters" feature
Status: RESOLVED DUPLICATE of bug 114086
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-12 02:31 EST by Sebastian Götz CLA
Modified: 2006-12-13 11:07 EST (History)
0 users

See Also:


Attachments
call stack (3.39 KB, text/plain)
2006-12-12 02:33 EST, Sebastian Götz CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Götz CLA 2006-12-12 02:31:46 EST
When using a prefix list for fields (window->preferences->Java->Code Style) that ends with a comma (e.g. "m_str,m_i,m_l,"), the feature Source->Generate Getters and Setters... won't work since it throws an ArrayIndexOutOfBoundsException: -1.

Find the stack trace attached.
Comment 1 Sebastian Götz CLA 2006-12-12 02:33:15 EST
Created attachment 55465 [details]
call stack
Comment 2 Olivier Thomann CLA 2006-12-13 11:07:45 EST

*** This bug has been marked as a duplicate of bug 114086 ***