We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 088c087 commit ce7f8c3Copy full SHA for ce7f8c3
src/scala/scripts/ScalaPBWorker.scala
@@ -29,7 +29,7 @@ object ScalaPBWorker extends Worker.Interface {
29
classes(className + "$").getField("MODULE$").get(null).asInstanceOf[ProtocCodeGenerator]
30
} catch {
31
case _: NoSuchFieldException | _: java.lang.ClassNotFoundException =>
32
- classes(className).newInstance.asInstanceOf[ProtocCodeGenerator]
+ classes(className).getDeclaredConstructor().newInstance().asInstanceOf[ProtocCodeGenerator]
33
}
34
35
private val generators: Seq[(String, ProtocCodeGenerator)] = sys.props.toSeq.collect {
0 commit comments