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

Bug 152927

Summary: [Decorators] ArrayOutOfBoundsException in DecorationBuilder.java
Product: [Eclipse Project] Platform Reporter: Sascha Zelzer <sascha.zelzer>
Component: UIAssignee: Tod Creasey <Tod_Creasey>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 Keywords: helpwanted
Version: 3.2   
Target Milestone: 3.3 M2   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Patch with test suites none

Description Sascha Zelzer CLA 2006-08-06 19:02:46 EDT
I unintentionally generated the above exception when playing with decorators. It was thrown in line 89 and the corresponding code block is:

if (quadrant >= 0 && quadrant <= DECORATOR_ARRAY_SIZE) {
	if (descriptors[quadrant] == null) {
		descriptors[quadrant] = overlay;
	}
	valueSet = true;
} else ...

I guess it should be "quadrant < DECORATOR_ARRAY_SIZE". I am using integration build I20060725-0800.

Regards,
Sascha
Comment 1 Tod Creasey CLA 2006-08-08 11:35:18 EDT
Created attachment 47534 [details]
Patch with test suites
Comment 2 Tod Creasey CLA 2006-08-14 09:36:35 EDT
Thanks Sascha - I have applied your suggested change and attributed them to you in the class comment.

Fixed in build >20060814
Comment 3 Tod Creasey CLA 2006-09-19 09:20:30 EDT
Verified in 20060919-0100