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.

View | Details | Raw Unified | Return to bug 202681
Collapse All | Expand All

(-)a/openide.windows/src/org/openide/windows/CloneableOpenSupport.java (-3 / +6 lines)
Lines 76-82 Link Here
76
    public CloneableOpenSupport(Env env) {
76
    public CloneableOpenSupport(Env env) {
77
        this.env = env;
77
        this.env = env;
78
78
79
        Listener l = new Listener(env);
79
        Listener l = new Listener(env, this);
80
        this.allEditors = l;
80
        this.allEditors = l;
81
81
82
        // attach property change listener to be informed about loosing validity
82
        // attach property change listener to be informed about loosing validity
Lines 308-319 Link Here
308
        static final long serialVersionUID = -1934890789745432531L;
308
        static final long serialVersionUID = -1934890789745432531L;
309
309
310
        /** environment to use as connection to outside world */
310
        /** environment to use as connection to outside world */
311
        private Env env;
311
        private final Env env;
312
        // rerefence to prevent GC of COS created in readResolve() by call to support()
313
        private final transient CloneableOpenSupport refCOS;
312
314
313
        /** Constructor.
315
        /** Constructor.
314
        */
316
        */
315
        public Listener(Env env) {
317
        public Listener(Env env, CloneableOpenSupport cos) {
316
            this.env = env;
318
            this.env = env;
319
            this.refCOS = cos;
317
        }
320
        }
318
321
319
        /** Getter for the associated CloneableOpenSupport
322
        /** Getter for the associated CloneableOpenSupport

Return to bug 202681