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

Bug 323942

Summary: [Net] Unnecessary native method call
Product: [Eclipse Project] Platform Reporter: Wojciech Galanciak <wojciech.galanciak>
Component: TeamAssignee: Szymon Brandys <Szymon.Brandys>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: pawel.pogorzelski1, Szymon.Brandys
Version: 3.6Flags: Szymon.Brandys: review+
Target Milestone: 3.7 M3   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
fix
none
fix Szymon.Brandys: iplog+

Description Wojciech Galanciak CLA 2010-08-30 05:40:29 EDT
Created attachment 177708 [details]
fix

In ProxyManager there is an unnecessary call to select method from native provider (see attached fix). We cannot assume that two calls (one after another) will both return non-empty array so it still can throw AIOOBE. Additionally, it is less efficiently.
Comment 1 Wojciech Galanciak CLA 2010-08-30 05:43:21 EDT
Created attachment 177709 [details]
fix
Comment 2 Pawel Pogorzelski CLA 2010-09-07 06:40:26 EDT
Good catch Wojciech, the fix is good.
Comment 3 Szymon Brandys CLA 2010-09-20 04:00:17 EDT
Checked in to HEAD.