From dc398c66454b3cb152a180e106d06f03642e1139 Mon Sep 17 00:00:00 2001 From: Burak Emir Date: Wed, 4 Oct 2006 11:19:49 +0000 Subject: improved comment --- src/compiler/scala/tools/nsc/io/AbstractFile.scala | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/compiler/scala/tools/nsc/io/AbstractFile.scala b/src/compiler/scala/tools/nsc/io/AbstractFile.scala index 8753396e16..0d02770e9a 100644 --- a/src/compiler/scala/tools/nsc/io/AbstractFile.scala +++ b/src/compiler/scala/tools/nsc/io/AbstractFile.scala @@ -60,15 +60,12 @@ object AbstractFile { * a specified name or path and of a specified kind. *

*

- * bq: The interface allows to access the content as bytes and as chars. - * In fact, only the ClassFileParser should access bytes, because - * only there we know that the charset of the file is UTF-8. For - * all other cases, the global.settings.encoding.value must - * be respected. + * The interface does not allow to access the content. + * The class symtab.classfile.AbstractFileReader accesses + * bytes, knowing that the character set of classfiles is UTF-8. For + * all other cases, the class SourceFile is used, which honors + * global.settings.encoding.value/ *

- * @todo it would be better if reading chars from sources was exclusively - * done in SourceFile and reading bytes for classfiles - * was done in symtab.classfile.AbstractFileReader. */ abstract class AbstractFile extends Object with Iterable[AbstractFile] { -- cgit v1.2.3