langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/file/BaseFileManager.java
equal
deleted
inserted
replaced
309 String encName = getEncodingName(); |
309 String encName = getEncodingName(); |
310 CharsetDecoder decoder; |
310 CharsetDecoder decoder; |
311 try { |
311 try { |
312 decoder = getDecoder(encName, ignoreEncodingErrors); |
312 decoder = getDecoder(encName, ignoreEncodingErrors); |
313 } catch (IllegalCharsetNameException | UnsupportedCharsetException e) { |
313 } catch (IllegalCharsetNameException | UnsupportedCharsetException e) { |
314 log.error("unsupported.encoding", encName); |
314 log.error(Errors.UnsupportedEncoding(encName)); |
315 return (CharBuffer)CharBuffer.allocate(1).flip(); |
315 return (CharBuffer)CharBuffer.allocate(1).flip(); |
316 } |
316 } |
317 |
317 |
318 // slightly overestimate the buffer size to avoid reallocation. |
318 // slightly overestimate the buffer size to avoid reallocation. |
319 float factor = |
319 float factor = |