Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 349579 - Server.loadAdapter() can return partially initialized delegates
Summary: Server.loadAdapter() can return partially initialized delegates
Status: NEW
Alias: None
Product: WTP ServerTools
Classification: WebTools
Component: wst.server (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: wst.server CLA
QA Contact: Angel Vera CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-16 11:05 EDT by Jarek Gawor CLA
Modified: 2011-06-16 11:05 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.