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.
after confirming no change in OD empty macros.xml files created. They are causing premature end of file exception later... 1. start IDE with empty user dir 2. invoke new OD 3. click on Editor and wait until settings are loaded 4. click OK - several (attached) premature end of file errors occured
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...)