diff options
Diffstat (limited to 'sources/scalac/Global.java')
-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); } |