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 150305

Summary: close() issues in reglib
Product: obsolete Reporter: Vince Kraemer <vkraemer>
Component: RegistrationAssignee: mslama <mslama>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Vince Kraemer 2008-10-16 00:13:24 UTC
It looks like there will be some dangling streams in the following files that are part of reglib...

There are a couple different coding mistakes in this module related to close...

1. calls to close() outside a finally.
2. multiple calls to close() in a finally, where the IOException from a close is not handled. This could cause a close()
to be skipped.

See: NbConnectionSupport, NbServiceTagSupport, Util, Installer, SunConnection, WindowsSystemEnvironment
Comment 1 mslama 2008-10-21 15:02:11 UTC
core-main #7cfb2210d90f

I revised package org.netbeans.modules.reglib. Package org.netbeans.modules.servicetag is copy from JDK so passed this
report to JDK. It will be synced.
Comment 2 Vince Kraemer 2008-10-22 04:28:25 UTC
is there a link to the jdk bug?
Comment 3 Quality Engineering 2008-10-22 05:05:00 UTC
Integrated into 'main-golden', will be available in build *200810220201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/7cfb2210d90f
User: Marek Slama <mslama@netbeans.org>
Log: #150305: Revise java.io.*.close() usage.
Comment 4 mslama 2008-10-27 16:27:09 UTC
JDK bug is #6764062