Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 356816 - [AbstrDeclValidator] internal state turns bogus
Summary: [AbstrDeclValidator] internal state turns bogus
Status: NEW
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 2.0.1   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-06 10:01 EDT by Moritz Eysholdt CLA
Modified: 2011-09-06 10:01 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 Moritz Eysholdt CLA 2011-09-06 10:01:05 EDT
When first running 
ValidattionTester.validate()
and then 
IResourceValidator.validate()
IllegalStateException("State is already assigned.") will be thrown.

proposed fix:
reset AbstractDeclarativeValidator.state from within ValidationTester.diagnose(). 
The protocol of ValidationTester suggests that diagnose() is called after validate() has been called. AbstractDeclarativeValidator will need to provide a method to reset its state, since state is currently an internal implementation detail.