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 40552
Collapse All | Expand All

(-)src/org/openide/filesystems/MultiFileObject.java (+6 lines)
Lines 1440-1446 Link Here
1440
                MultiFileObject.this.lock = null;
1440
                MultiFileObject.this.lock = null;
1441
            }
1441
            }
1442
        }
1442
        }
1443
	
1444
        // for better debugging
1445
        public String toString() {
1446
            return super.toString() + " for " + MultiFileObject.this + " valid=" + isValid(); // NOI18N
1447
        }
1443
    }
1448
    }
1449
1444
    /** Overloaded WeakListener.FileChange only to be able recognize this listener
1450
    /** Overloaded WeakListener.FileChange only to be able recognize this listener
1445
     *  by means of instanceof. 
1451
     *  by means of instanceof. 
1446
     */
1452
     */
(-)loaders/src/org/openide/text/DataEditorSupport.java (-1 / +10 lines)
Lines 402-408 Link Here
402
            if (fileLock == null || !fileLock.isValid()) {
402
            if (fileLock == null || !fileLock.isValid()) {
403
                fileLock = takeLock ();
403
                fileLock = takeLock ();
404
            }
404
            }
405
            return getFileImpl ().getOutputStream (fileLock);
405
            try {
406
                return getFileImpl ().getOutputStream (fileLock);
407
            } catch (IOException fse) {
408
	        // [pnejedly] just retry once.
409
		// Ugly workaround for #40552
410
                if (fileLock == null || !fileLock.isValid()) {
411
                    fileLock = takeLock ();
412
                }
413
                return getFileImpl ().getOutputStream (fileLock);
414
            }	    
406
        }
415
        }
407
        
416
        
408
        /** The time when the data has been modified
417
        /** The time when the data has been modified

Return to bug 40552