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

Bug 349579

Summary: Server.loadAdapter() can return partially initialized delegates
Product: [WebTools] WTP ServerTools Reporter: Jarek Gawor <jgawor>
Component: wst.serverAssignee: wst.server <wst.server-inbox>
Status: NEW --- QA Contact: Angel Vera <arvera>
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Jarek Gawor CLA 2011-06-16 11:05:04 EDT
Build Identifier: 

Server.loadAdapter() with ServerBehaviourDelegate or ServerDelegate can return a non-initialized or partially initialized delegate object. That's because Server.getDelegate() or Server.getBehaviourDelegate() can return the non-null delegate object before or while the initialize() method is being called.


Reproducible: Always

Steps to Reproduce:
Two threads running at the same time calling Server.loadAdapter(class, null) and having a ServerBehaviourDelegate.initialize() implementation that takes a long time to return.