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.
Summary: | premature end of xml settings file after confirming no change in new OD | ||
---|---|---|---|
Product: | editor | Reporter: | Martin Roskanin <mroskanin> |
Component: | Settings | Assignee: | Martin Roskanin <mroskanin> |
Status: | RESOLVED WORKSFORME | ||
Severity: | blocker | CC: | issues, jglick |
Priority: | P2 | Keywords: | RANDOM |
Version: | 5.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
premature EOF exc
write error causes empty macros.xml file |
Description
Martin Roskanin
2005-10-12 10:02:08 UTC
Created attachment 25842 [details]
premature EOF exc
Created attachment 25847 [details]
write error causes empty macros.xml file
probably more general issue. The similar problem was reproduced also in cvs module - issue #65297 I was able to reproduce for a while (JDK 1.5.0_05) but no more. I cannot actually find any empty macros.xml files even when the error message is printed. Where are they? Could be caused by the most recent fix of issue #62006 (indentation handling for XMLUtil.write in the presence of DOCTYPE and/or top-level comments), but difficult to confirm because I cannot consistently reproduce. MIMEOptionFile and MIMEOptionFolder seem to be flushing the OutputStream they use, which is good. But is it also close()d? Issue #66507 might be a dupe, perhaps. I am not able to reproduce the problem in the latest dev build... - macros.xml are are successfully created (under Editors/<mime-type>/ folder) MIMEOptionFile and MIMEOptionFolder close()s the stream in finally block. I am closing the issue for now. It seems it was fixed by some other commit. (I was able to easily reproduce problem before...) |