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.
Last change to j2eeserver code (10898e092440) contains 2 important bugs. - stream won't be closed on exception, writer is not closed at all - you could end up with empty file - I don't think it is reasonable to convert ByteArrayOutputStream to String and from String to byte array - there is ByteArrayOutputStream.toByteArray() - consider it for new ByteArrayInputStream and fileOS. This can lead to unintended results depending on default charset (locale settings) - it is not much common pattern in NetBeans to compare boolean value with boolean literal, please consider usage of if(file.exists()) rather than comparing it to true
Changes have been made http://hg.netbeans.org/main/rev/bd2b51675c8a