This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 33754 - Putenv info will be lost of WeakReference is garbage collected
Summary: Putenv info will be lost of WeakReference is garbage collected
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker (vote)
Assignee: _ gordonp
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-20 01:02 UTC by _ gordonp
Modified: 2007-09-06 18:04 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ gordonp 2003-05-20 01:02:02 UTC
The cpp UnixEnv is stored in a WeakReferenced table.
If putenv is used to update the env but the table
is garbage collected then the putenv'ed value would
be lost.

The env should either not be stored as a WeakReference
or we should change to a strong reference after a
putback (I don't know if thats possible).
Comment 1 _ gordonp 2007-03-13 20:50:44 UTC
Removed UnixEnv (a while ago) which gets rid of putenv. There are/were too
many environment APIs so I'm slowly consolidating where possible.
Comment 2 _ gordonp 2007-03-13 20:51:20 UTC
Forgot to chagne state to Fixed