-
Bug
-
Resolution: Fixed
-
P4
-
8, 9
-
None
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8084095 | emb-9 | Brian Burkhalter | P4 | Resolved | Fixed | team |
JDK-8163729 | 8u121 | Ivan Gerasimov | P4 | Resolved | Fixed | b01 |
JDK-8161151 | 8u112 | Ivan Gerasimov | P4 | Resolved | Fixed | b03 |
JDK-8167856 | emb-8u121 | Ivan Gerasimov | P4 | Resolved | Fixed | b01 |
JDK-8161152 | 7u131 | Ivan Gerasimov | P4 | Resolved | Fixed | b01 |
JDK-8161621 | 7u121 | Ivan Gerasimov | P4 | Resolved | Fixed | b05 |
JDK-8161167 | 6u141 | Ivan Gerasimov | P4 | Resolved | Fixed | b01 |
JDK-8161415 | 6u131 | Ivan Gerasimov | P4 | Resolved | Fixed | b05 |
159 } else {
160 //N2A
161 String inLine;
162 BufferedReader in = getN2AInput(inputFileName);
163 BufferedWriter out = getN2AOutput(outputFileName);
164
165 while ((inLine = in.readLine()) != null) {
166 out.write(inLine.toCharArray());
167 out.write(lineBreak);
168 if (outputFileName == null) { // flush stdout
169 out.flush();
170 }
171 }
172 out.close();
173}
Notice 'in' is never closed. This causes problems on NFS mounts where .nfsXXXX files are left behind.
There is also no protection against exceptions, streams should be closed in finally blocks or by using try/resources.
- backported by
-
JDK-8084095 Native2ascii doesn't close one of the streams it opens
- Resolved
-
JDK-8161151 Native2ascii doesn't close one of the streams it opens
- Resolved
-
JDK-8161152 Native2ascii doesn't close one of the streams it opens
- Resolved
-
JDK-8161167 Native2ascii doesn't close one of the streams it opens
- Resolved
-
JDK-8161415 Native2ascii doesn't close one of the streams it opens
- Resolved
-
JDK-8161621 Native2ascii doesn't close one of the streams it opens
- Resolved
-
JDK-8163729 Native2ascii doesn't close one of the streams it opens
- Resolved
-
JDK-8167856 Native2ascii doesn't close one of the streams it opens
- Resolved
- duplicates
-
JDK-8161097 tools.jar bug with sun.tools.native2ascii.Main
- Closed