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

Bug 312469

Summary: ResourceTreeRoot isn't thread safe
Product: [WebTools] WTP Common Tools Reporter: Larry Isaacs <larryisaacs>
Component: wst.commonAssignee: Diego Sahagun <diegosr>
Status: NEW --- QA Contact: Carl Anderson <ccc>
Severity: normal    
Priority: P3    
Version: 3.2   
Target Milestone: Future   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Portion of Eclipse .log file showing errors related to ResourceTreeRoot not being thread safe none

Description Larry Isaacs CLA 2010-05-11 13:12:47 EDT
Created attachment 167979 [details]
Portion of Eclipse .log file showing errors related to ResourceTreeRoot not being thread safe

The attached log shows what appears to be multiple calls to ResourceTreeRoot.getDeployResourceTreeRoot() creating multiple adapters (i.e. a couple of threads are in the "add" call at ResourceTreeRoot.java:128).  The impact of the ArrayIndexOutOfBoundsException is hard to assess.  Since this code has been this way for a long time, I'm leaving the severity at "normal".  The window for this to happen would seem to be small.  However, changes in WTP 3.2 could possibly increase the odds, so I'll keep an eye out.
Comment 1 Carl Anderson CLA 2010-05-11 16:51:25 EDT
Assigning to Jason for initial investigation.  Please retarget as appropriate.
Comment 2 Carl Anderson CLA 2011-05-19 22:04:32 EDT
Assigning this to Chava for initial investigation (since Jason Sholl moved on).