https://bz.apache.org/bugzilla/show_bug.cgi?id=62717
--- Comment #2 from [email protected] --- Code that reproduce : File testFile = new File("test.zip"); OPCPackage mainPkg = OPCPackage.openOrCreate(testFile); PackagePartName firstPartName = PackagingURIHelper.createPartName("/dummy/text.txt"); PackagePart firstPkg = mainPkg.createPart(firstPartName, "text/plain"); OutputStreamWriter osW = new OutputStreamWriter(firstPkg.getOutputStream(), "UTF8"); osW.append("FOO"); osW.flush(); osW.close(); firstPkg.flush(); firstPkg.close(); PackagePartName secondPartName = PackagingURIHelper.createPartName("/dummy/text.properties"); PackagePart secondPkg = mainPkg.createPart(secondPartName, "text/plain"); osW = new OutputStreamWriter(secondPkg.getOutputStream(), "UTF8"); osW.append("BAR FOO"); osW.flush(); osW.close(); firstPkg.flush(); firstPkg.close(); mainPkg.close(); mainPkg = OPCPackage.openOrCreate(testFile); And yes it failed also with 4.0. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
