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

Bug 322907

Summary: VirtualMachineImpl should cache its name and version
Product: [WebTools] JSDT Reporter: Michael Rennie <Michael_Rennie>
Component: DebugAssignee: Michael Rennie <Michael_Rennie>
Status: VERIFIED FIXED QA Contact: Simon Kaegi <simon_kaegi>
Severity: normal    
Priority: P3 CC: thatnitind
Version: 3.2Keywords: performance
Target Milestone: 3.3 M2   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
fix none

Description Michael Rennie CLA 2010-08-17 11:03:14 EDT
Created attachment 176795 [details]
fix

code from HEAD

currently a call to either name() or version() will always send a request to the RhinoDebugger, but it does not have to - the name and version do not change during the life-cycle of a VM. 

The patch caches these two values after the first successful request.
Comment 1 Michael Rennie CLA 2010-08-17 11:14:39 EDT
applied to HEAD