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

Bug 340230

Summary: The validator cache should be reset when there is a REMOVED event
Product: [WebTools] WTP Common Tools Reporter: Keith Chong <keith.chong.ca>
Component: wst.validationAssignee: Gary Karasiuk <karasiuk>
Status: RESOLVED FIXED QA Contact: Chuck Bridgham <cbridgha>
Severity: normal    
Priority: P3 CC: ccc, karasiuk
Version: 3.2.3Flags: ccc: review+
Target Milestone: 3.2.4   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Apply to org.eclipse.wst.validation
none
alternative patch none

Description Keith Chong CLA 2011-03-16 15:43:31 EDT
The Validation framework lists the valid validators on the resource as a session property.  If the resource, which is valid for validator XYZ, is then moved to another project where validator XYZ is no longer valid, problems may arise when the validator is run.  Thus, the cache needs to be reset.
Comment 1 Keith Chong CLA 2011-03-16 15:45:03 EDT
Created attachment 191342 [details]
Apply to org.eclipse.wst.validation
Comment 2 Gary Karasiuk CLA 2011-03-17 18:07:46 EDT
Created attachment 191476 [details]
alternative patch

Hi Keith, Could you please see if this patch fixes the problem. It should perform better than your original patch.
Comment 3 Gary Karasiuk CLA 2011-03-21 09:49:23 EDT
Carl, Can I drop this into 3.2.4?

Keith has tested the patch.
Comment 4 Gary Karasiuk CLA 2011-03-21 16:42:10 EDT
Fix has been released to 3.2.4 and to HEAD.