diff options
author | Lukas Rytz <lukas.rytz@gmail.com> | 2016-03-30 16:50:36 +0200 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@gmail.com> | 2016-03-30 20:43:24 +0200 |
commit | e4529ca2e0091ec137c791419ae08c8da8e0aecf (patch) | |
tree | 61ccdd7cbfdb7f85566bec2419f92f4aa91c3dbd /src/intellij/scala-build.iml.SAMPLE | |
parent | 952da60a5be15ef972b521bdaf5e650f7e0a5245 (diff) | |
download | scala-e4529ca2e0091ec137c791419ae08c8da8e0aecf.tar.gz scala-e4529ca2e0091ec137c791419ae08c8da8e0aecf.tar.bz2 scala-e4529ca2e0091ec137c791419ae08c8da8e0aecf.zip |
SI-9702 Fix backend crash with classOf[T] annotation argument
This commit fixes various issues with classOf literals and Java
annotations.
- Ensure that a Type within a ConstantType (i.e., a classOf literal)
is erased, so `classOf[List[Int]]` becomes `classOf[List]`.
- Ensure that no non-erased types are passed to `typeToBType` in the
backend. This happens for Java annotations: the annotation type and
`classOf` annotation arguments are not erased, the annotationInfos
of a symbol are not touched in the compiler pipeline.
- If T is an alias to a value class, ensure that `classOf[T]` erases
to the value class by calling `dealiasWiden` in erasure.
Diffstat (limited to 'src/intellij/scala-build.iml.SAMPLE')
0 files changed, 0 insertions, 0 deletions