Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 331479 - ResourceSynchronizedIsLoadingAdapter#logWarning() will always cause exceptions
Summary: ResourceSynchronizedIsLoadingAdapter#logWarning() will always cause exceptions
Status: RESOLVED FIXED
Alias: None
Product: WTP Common Tools
Classification: WebTools
Component: wst.common (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.3 M3   Edit
Assignee: Nitin Dahyabhai CLA
QA Contact: Carl Anderson CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-30 17:04 EST by Nitin Dahyabhai CLA
Modified: 2011-04-25 14:57 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 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.