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 137818

Summary: Input close (UI representation) does not work
Product: platform Reporter: Petr Hejl <phejl>
Component: Output WindowAssignee: t_h <t_h>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 135670    

Description Petr Hejl 2008-06-20 12:47:24 UTC
This happens when IO is reused:
1) output does not contain any line from previous operation
2) out, err and in are closed
3) tab name is still presented in bold as if it would be still active

Seems that problem is in this part of OutWriter:
    public synchronized boolean isClosed() {
        if (checkError() || storage == null || storage.isClosed()) {
            return true;
        } else {
            return closed;
        }
    }

storage.isClosed() probably return false only if there is some output written - consequence of this is no closed event
emitted if there were no lines printed to the pane.
Comment 1 t_h 2009-08-07 09:49:34 UTC
core-main #305705331868
Comment 2 Quality Engineering 2009-08-08 07:03:00 UTC
Integrated into 'main-golden', will be available in build *200908080201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/305705331868
User: Tomas Holy <t_h@netbeans.org>
Log: #137818: Input close (UI representation) does not work