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 - close() issues in reglib
Summary: close() issues in reglib
Status: RESOLVED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: Registration (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: mslama
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-16 00:13 UTC by Vince Kraemer
Modified: 2009-02-19 20:55 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 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