reflections icon indicating copy to clipboard operation
reflections copied to clipboard

code works in 1.8 in prod and dev enviroment and in 11 only in dev enviroment

Open MoeQuadrat opened this issue 3 years ago • 0 comments

hello, I have this code. I use it in the play framework in scala, the code works fine in dev mode. But when I use production mode it does not find the classes it found in dev mode. I then decided to downgrade my Java from 11.0.14 to 1.8 and suddenly the code works in both modes. But unfortunately I can't use My Projects in 1.8 because I need compatibility with Java 11 for some other dependencies.

val x = reflection .getSubTypesOf(classOf[AutoRoutableController]) .asScala println(x)

MoeQuadrat avatar Aug 05 '22 12:08 MoeQuadrat