scala 2.12中丢失的注释信息

scala 2.12中丢失的注释信息,scala,javafx-8,scala-2.12,Scala,Javafx 8,Scala 2.12,刚刚将scala 2.11+JavaFX项目更新为2.12.0-RC1,代码大量使用java@FXML注释,例如 trait MainController { @FXML def onRun(event: ActionEvent) { val script = currentEngine.executeScript("editor.getValue()").toString runScript(script) } } <MenuItem mnemonicParsi

刚刚将scala 2.11+JavaFX项目更新为2.12.0-RC1,代码大量使用java
@FXML
注释,例如

trait MainController {
  @FXML def onRun(event: ActionEvent) {
    val script = currentEngine.executeScript("editor.getValue()").toString
    runScript(script)
  }
}

<MenuItem mnemonicParsing="false" onAction="#onRun" text="Run">
   <accelerator>
        <KeyCodeCombination alt="UP" code="R" control="UP" meta="UP" shift="UP" shortcut="DOWN"/>
   </accelerator>
</MenuItem>

编译过程中,
@FXML
注释信息似乎已丢失。我听说在2.12中,所有的特性都被编译成接口,但是这种变化是如何导致问题的呢?是否有解决方法?

尽管原因不明,但此问题已在scala-2.12.0-RC2中解决。谢谢你,Scala团队

尽管原因不明,但这个问题已在scala-2.12.0-RC2中解决。谢谢你,Scala团队

javafx.fxml.LoadException: Error resolving onAction='#onRun', either the event handler is not in the Namespace or there is an error in the script.