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

Bug 331479

Summary: ResourceSynchronizedIsLoadingAdapter#logWarning() will always cause exceptions
Product: [WebTools] WTP Common Tools Reporter: Nitin Dahyabhai <thatnitind>
Component: wst.commonAssignee: Nitin Dahyabhai <thatnitind>
Status: RESOLVED FIXED QA Contact: Carl Anderson <ccc>
Severity: normal    
Priority: P3    
Version: 3.2   
Target Milestone: 3.3 M3   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Nitin Dahyabhai CLA 2010-11-30 17:04:01 EST
I was updating my workspace to 3.7M3 and I noticed a new error in the org.eclipse.wst.common.internal.emf.ResourceSynchronizedIsLoadingAdapter#logWarning() method.  As written, it can't possibly run correctly:

Notifier target = getTarget();
if (target == null || !(target instanceof Resource)) {
  Resource resource = (Resource) target;
  EcoreUtilitiesPlugin.logError("[WARNING] Could not acquire Semaphore Lock for Resource: \"" + resource.getURI() + "\" in " + getClass());  //$NON-NLS-1$//$NON-NLS-2$
}
Comment 1 Nitin Dahyabhai CLA 2011-04-25 14:57:12 EDT
Changed.