summaryrefslogtreecommitdiff
path: root/sources/scalac/Global.java
diff options
context:
space:
mode:
authorpaltherr <paltherr@epfl.ch>2004-03-21 16:05:09 +0000
committerpaltherr <paltherr@epfl.ch>2004-03-21 16:05:09 +0000
commitf57010499bc269dc8c2d8f0a918caf59235980d5 (patch)
tree04bc96c744d23e2b0b4e9be75da074b5297e0b57 /sources/scalac/Global.java
parent7465e94917326f52367e8c8c294d50bff307ad1d (diff)
downloadscala-f57010499bc269dc8c2d8f0a918caf59235980d5.tar.gz
scala-f57010499bc269dc8c2d8f0a918caf59235980d5.tar.bz2
scala-f57010499bc269dc8c2d8f0a918caf59235980d5.zip
- Fixed getSourceFile for case where file does ...
- Fixed getSourceFile for case where file does not exist
Diffstat (limited to 'sources/scalac/Global.java')
-rw-r--r--sources/scalac/Global.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/sources/scalac/Global.java b/sources/scalac/Global.java
index 088332e0f7..d83751926d 100644
--- a/sources/scalac/Global.java
+++ b/sources/scalac/Global.java
@@ -315,6 +315,8 @@ public abstract class Global {
assert clasz.isClass() && clasz.isStatic(): Debug.show(clasz);
AbstractFile file = classPath.openFile(
SourceRepresentation.externalizeFileName(clasz, ".scala"));
+ if (file == null) throw new FileNotFoundException(
+ "source file for " + clasz + " could not be found");
return getSourceFile(file);
}