diff options
author | Grzegorz Kossakowski <grzegorz.kossakowski@gmail.com> | 2013-02-25 16:33:07 -0800 |
---|---|---|
committer | Grzegorz Kossakowski <grzegorz.kossakowski@gmail.com> | 2013-02-25 16:33:07 -0800 |
commit | 4f1bfece9bc429ea465991355353a1e2c38c2e1a (patch) | |
tree | dc69e85a359e738c56d27f8f49dad464c1b047a1 /test | |
parent | 3b85c3d22b9d62e9e07c53f235ae8e889581ddc8 (diff) | |
download | scala-4f1bfece9bc429ea465991355353a1e2c38c2e1a.tar.gz scala-4f1bfece9bc429ea465991355353a1e2c38c2e1a.tar.bz2 scala-4f1bfece9bc429ea465991355353a1e2c38c2e1a.zip |
Fix SI-7107: scala now thinks every exception is polymorphic
We need to force info of the `cls` in `parseExceptions`
because we pass `cls` to `addThrowsAnnotation` which in turn calls
`Symbol.isMonomorphicType` that relies on a symbol being initialized
to give right answers.
In the future we should just clean up implementation of
`isMonomorphicType` method to not rely on a symbol being initialized
as there's no inherent reason for that in most cases. In cases where
there's reason for that we should just force the initialization.
This patch does not come with a test-case because it's hard to reproduce
not initialized symbols in partest reliably.
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions