summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/io/AbstractFile.scala
diff options
context:
space:
mode:
authorBurak Emir <emir@epfl.ch>2006-10-04 11:19:49 +0000
committerBurak Emir <emir@epfl.ch>2006-10-04 11:19:49 +0000
commitdc398c66454b3cb152a180e106d06f03642e1139 (patch)
tree9fd3998edd4f208ed09c997f2d80ce8663eef0ee /src/compiler/scala/tools/nsc/io/AbstractFile.scala
parente1327fc4740baeffcfacdf784a82070b191a58a8 (diff)
downloadscala-dc398c66454b3cb152a180e106d06f03642e1139.tar.gz
scala-dc398c66454b3cb152a180e106d06f03642e1139.tar.bz2
scala-dc398c66454b3cb152a180e106d06f03642e1139.zip
improved comment
Diffstat (limited to 'src/compiler/scala/tools/nsc/io/AbstractFile.scala')
-rw-r--r--src/compiler/scala/tools/nsc/io/AbstractFile.scala13
1 files 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.
* </p>
* <p>
- * 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 <code>global.settings.encoding.value</code> must
- * be respected.
+ * The interface does <b>not</b> allow to access the content.
+ * The class <code>symtab.classfile.AbstractFileReader</code> accesses
+ * bytes, knowing that the character set of classfiles is UTF-8. For
+ * all other cases, the class <code>SourceFile</code> is used, which honors
+ * <code>global.settings.encoding.value</code>/
* </p>
- * @todo it would be better if reading chars from sources was exclusively
- * done in <code>SourceFile</code> and reading bytes for classfiles
- * was done in <code>symtab.classfile.AbstractFileReader</code>.
*/
abstract class AbstractFile extends Object with Iterable[AbstractFile] {