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

Bug 345232

Summary: Refactor RWTRequestVersionControl
Product: [RT] RAP Reporter: Rüdiger Herrmann <ruediger.herrmann>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: unspecified   
Target Milestone: 1.5 M1   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 345395    
Bug Blocks: 342407    
Attachments:
Description Flags
Prelinimary fix none

Description Rüdiger Herrmann CLA 2011-05-10 04:28:31 EDT
The main state that is held by RWTRequestVersionControl is the 'request-version', which exists once per session. However, the class has only static accessors and maintains its state in session attributes.
RWTRequestVersionControl could benefit from being transformed into a session singleton.
Comment 1 Rüdiger Herrmann CLA 2011-05-11 07:05:09 EDT
Created attachment 195323 [details]
Prelinimary fix

This fix currently does not work because of bug 345395 and needs to be revised once the blocking bug is closed.
Comment 2 Rüdiger Herrmann CLA 2011-05-18 11:04:42 EDT
Adjusted patch and applied it to CVS HEAD.