diff options
author | paltherr <paltherr@epfl.ch> | 2004-03-21 16:05:09 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2004-03-21 16:05:09 +0000 |
commit | f57010499bc269dc8c2d8f0a918caf59235980d5 (patch) | |
tree | 04bc96c744d23e2b0b4e9be75da074b5297e0b57 /sources | |
parent | 7465e94917326f52367e8c8c294d50bff307ad1d (diff) | |
download | scala-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')
-rw-r--r-- | sources/scalac/Global.java | 2 |
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); } |