diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2013-06-06 14:51:34 +0200 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2013-06-13 11:51:52 -0400 |
commit | a95432168204964e4f6c4571e781559c1640f2d8 (patch) | |
tree | f9d38be6e94260f95c46d40438cae2c4dbff331e /test/files/run/t7439.check | |
parent | 5312d6305530eb14d369d0f4acaf7ca4e278ea72 (diff) | |
download | scala-a95432168204964e4f6c4571e781559c1640f2d8.tar.gz scala-a95432168204964e4f6c4571e781559c1640f2d8.tar.bz2 scala-a95432168204964e4f6c4571e781559c1640f2d8.zip |
SI-7439 Avoid NPE in `isMonomorphicType` with stub symbols.
`originalInfo` can return null for stub symbols; deal with that
as we used to before a regression in 016bc3db.
After this change, we can once again delete A_1.class and still compile
code instantiating B_1. (A_1 is only referred to in a method signature
of B_1 which is not called from our code.)
scala> new B_1
warning: Class A_1 not found - continuing with a stub.
res0: B_1 = B_1@5284b8f9
In practice, this situation arises when someone uses a third
party class that was compiled against other libraries not avaialable
on the current compilation classpath.
Diffstat (limited to 'test/files/run/t7439.check')
-rw-r--r-- | test/files/run/t7439.check | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/files/run/t7439.check b/test/files/run/t7439.check new file mode 100644 index 0000000000..9ea09f9c40 --- /dev/null +++ b/test/files/run/t7439.check @@ -0,0 +1,2 @@ +Recompiling after deleting t7439-run.obj/A_1.class +pos: NoPosition Class A_1 not found - continuing with a stub. WARNING |