summaryrefslogtreecommitdiff
path: root/sources/scalac/symtab
diff options
context:
space:
mode:
authorpaltherr <paltherr@epfl.ch>2005-02-01 13:17:26 +0000
committerpaltherr <paltherr@epfl.ch>2005-02-01 13:17:26 +0000
commitcc64c24f2e8bee8f75897b0bb6464bbd6b9fc2cd (patch)
treead873e305906f4636a2b855ab7f07b7fd95cea4b /sources/scalac/symtab
parent21204727d1c6abd841d9247013ddc5c93e2bee25 (diff)
downloadscala-cc64c24f2e8bee8f75897b0bb6464bbd6b9fc2cd.tar.gz
scala-cc64c24f2e8bee8f75897b0bb6464bbd6b9fc2cd.tar.bz2
scala-cc64c24f2e8bee8f75897b0bb6464bbd6b9fc2cd.zip
- Changed AbstractFileReader to store the abstr...
- Changed AbstractFileReader to store the abstract file instead of its path.
Diffstat (limited to 'sources/scalac/symtab')
-rw-r--r--sources/scalac/symtab/classfile/ClassfileParser.java8
-rw-r--r--sources/scalac/symtab/classfile/Signatures.java2
2 files changed, 5 insertions, 5 deletions
diff --git a/sources/scalac/symtab/classfile/ClassfileParser.java b/sources/scalac/symtab/classfile/ClassfileParser.java
index f4dc500f19..235e350903 100644
--- a/sources/scalac/symtab/classfile/ClassfileParser.java
+++ b/sources/scalac/symtab/classfile/ClassfileParser.java
@@ -77,7 +77,7 @@ public class ClassfileParser implements ClassfileConstants {
try {
int magic = in.nextInt();
if (magic != JAVA_MAGIC)
- throw new IOException("class file '" + in.path + "' "
+ throw new IOException("class file '" + in.file + "' "
+ "has wrong magic number 0x" + Integer.toHexString(magic)
+ ", should be 0x" + Integer.toHexString(JAVA_MAGIC));
int minorVersion = in.nextChar();
@@ -85,7 +85,7 @@ public class ClassfileParser implements ClassfileConstants {
if ((majorVersion < JAVA_MAJOR_VERSION) ||
((majorVersion == JAVA_MAJOR_VERSION) &&
(minorVersion < JAVA_MINOR_VERSION)))
- throw new IOException("class file '" + in.path + "' "
+ throw new IOException("class file '" + in.file + "' "
+ "has unknown version "
+ majorVersion + "." + minorVersion
+ ", should be less than "
@@ -96,12 +96,12 @@ public class ClassfileParser implements ClassfileConstants {
int flags = in.nextChar();
Symbol clasz = pool.getClass(in.nextChar());
if (c != clasz)
- throw new IOException("class file '" + in.path + "' "
+ throw new IOException("class file '" + in.file + "' "
+ "contains wrong class " + clasz.staticType());
new ClassfileParser(global, in, c, make, pool).parse(flags);
} catch (RuntimeException e) {
if (global.debug) e.printStackTrace();
- throw new IOException("class file '" + in.path + "' is broken");
+ throw new IOException("class file '" + in.file + "' is broken");
}
}
diff --git a/sources/scalac/symtab/classfile/Signatures.java b/sources/scalac/symtab/classfile/Signatures.java
index 80ee491571..102bce1a64 100644
--- a/sources/scalac/symtab/classfile/Signatures.java
+++ b/sources/scalac/symtab/classfile/Signatures.java
@@ -168,7 +168,7 @@ public class Signatures {
/** Signals the given error. */
private void error(String error) {
- global.error("class file '" + in.path + "': " + error);
+ global.error("class file '" + in.file + "': " + error);
}
//########################################################################