langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/file/BaseFileManager.java
changeset 45504 ea7475564d07
parent 44458 cf6145299178
equal deleted inserted replaced
45503:d23ae2d67a5d 45504:ea7475564d07
   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 =