From cc64c24f2e8bee8f75897b0bb6464bbd6b9fc2cd Mon Sep 17 00:00:00 2001 From: paltherr Date: Tue, 1 Feb 2005 13:17:26 +0000 Subject: - Changed AbstractFileReader to store the abstr... - Changed AbstractFileReader to store the abstract file instead of its path. --- sources/scalac/symtab/classfile/ClassfileParser.java | 8 ++++---- sources/scalac/symtab/classfile/Signatures.java | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'sources/scalac/symtab') 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); } //######################################################################## -- cgit v1.2.3