| Summary: | index=7, size=6 | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [WebTools] WTP Java EE Tools | Reporter: | Hari Shankar <hshanka> | ||||
| Component: | jst.j2ee | Assignee: | Hari Shankar <hshanka> | ||||
| Status: | RESOLVED FIXED | QA Contact: | Chuck Bridgham <cbridgha> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | ccc, deboer, jsholl | ||||
| Version: | unspecified | Flags: | hshanka:
pmc_approved?
(david_williams) hshanka: pmc_approved? (raghunathan.srinivasan) hshanka: pmc_approved? (naci.dai) deboer: pmc_approved+ hshanka: pmc_approved? (neil.hauge) hshanka: pmc_approved? (kaloyan) cbridgha: review+ |
||||
| Target Milestone: | 3.2 RC2 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | PMC_approved | ||||||
| Attachments: |
|
||||||
|
Description
Hari Shankar
Created attachment 168963 [details]
patch
This patch checks to see if the index is > the size of the array, and uses the index if its valid.
approve * Explain why you believe this is a stop-ship defect. Or, if it is a "hotbug" (requested by an adopter) please document it as such.
This exception, if it occurs, will cause the model to be in a bad state.
* Is there a work-around? If so, why do you believe the work-around is insufficient?
No known workarounds.
* How has the fix been tested? Is there a test case attached to the bugzilla record? Has a JUnit Test been added?
Tested this fix by running an end to end smoke test incuding rad restart.
* Give a brief technical overview. Who has reviewed this fix?
This fix has been reviewed by Chuck Bridgham.
* What is the risk associated with this fix?
No known risks.
I agree with defensive code and am approving, but do you have any idea how this could happen in the first place? Sounds like there is still an underlying problem lurking, and although this avoids the exception, do you know if this would be the correct behaviour if this happens again? Committed to HEAD for WTP 3.2 RC 2 |