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

Bug 355715

Summary: Library variable isn't static thru the run unit of the program
Product: z_Archived Reporter: Kathy Carroll <carrollk>
Component: EDTAssignee: Project Inbox <edt.javagen-inbox>
Status: CLOSED FIXED QA Contact:
Severity: blocker    
Priority: P3 CC: mheitz
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Archived Project File none

Description Kathy Carroll CLA 2011-08-24 10:55:01 EDT
Created attachment 202092 [details]
Archived Project File

I have a ResultsLib library that has a timestamp library variable that will be initialize if necessary when its methods are used.  My program and two additional libraries use the ResultsLib.  I'd expect to grab the timestamp once thru the execution of the program.  However, the time is being calculated three times  -- by the program and once by each library using the ResultsLib.

Here's the console from my execution:

  **** driver using resultsLib  **** 
action one
 calculating time
  **** driver using ExcutionLib  **** 
action one
 calculating time
action two
action one
action two
  **** driver using resultsLib  **** 
action one
  **** driver using Another  **** 
action two
 calculating time
Comment 1 Matt Heitz CLA 2011-08-26 14:43:39 EDT
Fixed by generating the library lookup code differently, so we'll only create one copy of the library per RunUnit.
Comment 2 Kathy Carroll CLA 2011-08-29 10:27:28 EDT
verified
Comment 3 Lisa Lasher CLA 2011-10-11 16:09:53 EDT
Closing this defect.