Issue 99611

Summary: OOo Deadlock when setting negative int as parameter on XIndexContainer.insertByIndex()
Product: App Dev Reporter: tobiaskrais <tux-spam>
Component: apiAssignee: AOO issues mailing list <issues>
Status: UNCONFIRMED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: issues
Version: 3.3.0 or older (OOo)   
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description tobiaskrais 2009-02-25 09:00:07 UTC
I created a Unit Test and detected a OOo deadlock when using the methods:
- XIndexContainer.insertByIndex(-2, properties);
- XIndexContainer.removeByIndex(-2);
- XIndexContainer.replaceByIndex(-2, properties);

I know the value is wrong, but the deadlock is too heavy...
Comment 1 jsc 2009-02-25 09:24:48 UTC
we need more info in which context you use the index container. It's a generic
interface and is used very often.

I agree that we shouldn't deadlock and shouldn't crash. In this case i would
expect an IndexOutOfBoundsException. 
Comment 2 tobiaskrais 2009-02-25 09:27:17 UTC
tobiaskrais -> jsc: I try to add, replace or remove a menu to the menubar. I
think (but did not test) this will also happen with menu items. Do you need more
information?
Comment 3 jsc 2009-03-23 11:10:34 UTC
jsc -> cd: seems to be one for you, can you please take care of this issue