Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 355715 - Library variable isn't static thru the run unit of the program
Summary: Library variable isn't static thru the run unit of the program
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 blocker (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-24 10:55 EDT by Kathy Carroll CLA
Modified: 2017-02-23 14:19 EST (History)
1 user (show)

See Also:


Attachments
Archived Project File (18.04 KB, application/x-zip-compressed)
2011-08-24 10:55 EDT, Kathy Carroll CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.