Open scabug opened 8 years ago
Imported From: https://issues.scala-lang.org/browse/SI-9477?orig=1 Reporter: @retronym
@retronym said: Note: Scala refactoring was already prepared for this change in: https://github.com/scala-ide/scala-refactoring/pull/96
@retronym said:
The motivation here is to support IDE functionality (e.g. navigation, completion) within the type arguments of classOf
).
To merge this:
https://github.com/retronym/scala/commit/689b6db
We need to adapt:
https://github.com/scala-ide/scala-ide/blob/4.2.0-rc3/org.scala-ide.sdt.core/src/org/scalaide/core/internal/jdt/model/ScalaStructureBuilder.scala#L45
So as to avoid these test failures in scala-ide
I tried:
But this didn't work immediately, so I dropped the change from my PR and opened this ticket.
While we're looking at this, we should see if the IDE also needs an update for the recently added variant of
@throws
that that uses a type parameter:Probably the IDE should use the extractor
AnnotationInfos.ThrownException
in the compiler, and we should update that in the commit that disables constant folding ofclassOf
calls./cc @sschaef