scalacenter / scala

The Scala programming language

Home Page:http://www.scala-lang.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dotty represents java annotations as init methods

bishabosha opened this issue · comments

e.g. given

public @interface RunWith {
  Class<? extends Runner> value();
}

the code

@RunWith(classOf[Foo])
class Suite

is pickled to have an annotation constructed by method

def `<init>`(value: Class[_ <: Runner]): RunWith

but by standard, nsc sees RunWith as having a no-arg constructor

fixed in upstream