summaryrefslogtreecommitdiff
path: root/sources/scalac/backend/msil
diff options
context:
space:
mode:
authorpaltherr <paltherr@epfl.ch>2004-12-03 14:57:48 +0000
committerpaltherr <paltherr@epfl.ch>2004-12-03 14:57:48 +0000
commit4fdab72617dbe4e049939e268df88f7a7efe5c06 (patch)
treef4b64dbe9097b1604b5d3a25de6f2f076c10d79a /sources/scalac/backend/msil
parent162a5f7755a7c6c083c96f752a5cbc4f846bb31c (diff)
downloadscala-4fdab72617dbe4e049939e268df88f7a7efe5c06.tar.gz
scala-4fdab72617dbe4e049939e268df88f7a7efe5c06.tar.bz2
scala-4fdab72617dbe4e049939e268df88f7a7efe5c06.zip
- Removed fail methods in class Global
Diffstat (limited to 'sources/scalac/backend/msil')
-rw-r--r--sources/scalac/backend/msil/TypeCreator.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/sources/scalac/backend/msil/TypeCreator.java b/sources/scalac/backend/msil/TypeCreator.java
index 48fe68f029..85f793d87a 100644
--- a/sources/scalac/backend/msil/TypeCreator.java
+++ b/sources/scalac/backend/msil/TypeCreator.java
@@ -427,7 +427,7 @@ final class TypeCreator {
translateMethod(alts[i], newClazz, newName);
return;
default:
- global.fail(Debug.show(sym) + " : " + Debug.show(sym.info()));
+ throw Debug.abort(Debug.show(sym, sym.info()));
}
}
@@ -793,8 +793,7 @@ final class TypeCreator {
break;
default:
- global.fail("Symbol does not have a CompoundType: " +
- Debug.show(clazz));
+ throw Debug.abort("Symbol does not have a CompoundType", clazz);
}
typeBuilders.add(type);
map(clazz, type);
@@ -940,7 +939,7 @@ final class TypeCreator {
}
break;
default:
- global.fail("Symbol doesn't have a method type: " + Debug.show(sym));
+ throw Debug.abort("Symbol doesn't have a method type", sym);
}
assert method != null
: Debug.show(owner) + " => Cannot find method: " + methodSignature(sym);