Community
Participate
Working Groups
The XML validator contains an error customization manager. This manager is extensible so anyone can contribute custom error messages. The manager under certain circumstances may request customizations for incorrect elements. (It also requests the customizations for the correct elements.) For example, in some cases when an error has been previously reported the manager will retain the error message information fooling it on later runs into requesting customization when there is no error.
The fix for this problem is to change the scope of the error customization manager from the XML validator (of which there is a single instance in Eclipse) to the validation run (of which there are many).
Created attachment 41609 [details] Patch that changes the scope of the error customization manager This patch corrects the problem reported by changing the scope of the error customization manager.
Craig, although David is the default QA contact I've cced you for your review and approval as you're more familiar with this code.
Created attachment 41618 [details] Patch for the XML validation tests This patch adds a test for this problem.
Craig Salter approved this bug conditional on an announcement to wtp-dev announcing the breaking change of removing the global error customizer from the XML validator. This will only affect those extending the XML validator class.
Changes released on 20060517.
Verified with WTP 1.5 RC6.
Closing bug.