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

Bug 347062

Summary: Make org.eclipse.wst.server.core.internal.Server.getModules() thread-safe
Product: [WebTools] WTP ServerTools Reporter: Raymond Lai <rkklai>
Component: wst.serverAssignee: wst.server <wst.server-inbox>
Status: NEW --- QA Contact: Angel Vera <arvera>
Severity: enhancement    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Raymond Lai CLA 2011-05-24 15:08:23 EDT
Build Identifier: 

Currently, the decorator and the server views can call the Server.getModules() concurrently. One can instantiate the modules array and in the process of populating it. Then the other can come and get the unpopulated/partially populated modules array. The publish code can call Server.getModules() and get the unpopulated/partially populated modules array as well.

This bug will make the concurrency issue happen more often: https://bugs.eclipse.org/bugs/show_bug.cgi?id=347059.

Reproducible: Sometimes