You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exception when trying to use AutoDialog. This happening with release 0.7.0
Exception in thread "main" java.lang.IllegalAccessError: failed to access class org.scalafx.extras.auto_dialog.DialogEncoder$LabeledBuilder from class staircase.AutoDialogDemo1$$anon$1 (org.scalafx.extras.auto_dialog.DialogEncoder$LabeledBuilder and staircase.AutoDialogDemo1$$anon$1 are in unnamed module of loader 'app')
at staircase.AutoDialogDemo1$$anon$1.<init>(AutoDialogDemo1.scala:51)
at staircase.AutoDialogDemo1$.main(AutoDialogDemo1.scala:51)
at staircase.AutoDialogDemo1.main(AutoDialogDemo1.scala)
The source code to reproduce the issue:
packagestaircaseimportorg.scalafx.extras.auto_dialog.AutoDialogimportorg.scalafx.extras.initFXobjectAutoDialogDemo1:caseclassLikeRecord(
firstName: String="",
lastName: String="",
age: Int=0,
likesBeatles: Boolean=true
)
defmain(args: Array[String]):Unit=
initFX()
valsrcData=LikeRecord()
valresult:Option[LikeRecord] =newAutoDialog(srcData)
.showDialog(
"AutoDialog Demo",
"Fields are auto generated from `LikeRecord` object"
)
println(result)
System.exit(0)
v.0.7.0 was build with Scala 3.0.2, rebuilding scalafx-extras with Scala 3.2.2 resolves the issue (without modification to the above example).
The text was updated successfully, but these errors were encountered:
Exception when trying to use
AutoDialog
. This happening with release 0.7.0The source code to reproduce the issue:
v.0.7.0 was build with Scala 3.0.2, rebuilding scalafx-extras with Scala 3.2.2 resolves the issue (without modification to the above example).
The text was updated successfully, but these errors were encountered: