-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.lang.ClassCastException
in the reversi app
#8
Comments
OS X 10.10, Java 1.8_51, Scala 2.11.7 |
Actually, as soon as I make the first move, I get the following:
|
This looks like an issue introduced by JavaFX 8. The examples were created when JavaFX 2 was around and worked fine at that time. Then you try the original Pro JavaFX 2, it has the same problems. Would you want to file the bug with JavaFX team. Pro JavaFX 8 uses modified code. That will need to be ported to ProScalaFX. |
Here is the Pro JavaFX 8 version of the same app:
And it doesn't throw any exception. If I comment out the 3D effect parts of the Scala version
Then these exceptions went away, but I still get a warning:
|
The issue is with the 3D code (the one you commented out). This is an JavaFX issue. That code was removed from the newer editions of the book. I am clear where the last two warnings, about 'width', are coming from. Need a deeper look. |
This app produces lots of
java.lang.ClassCastException
.The text was updated successfully, but these errors were encountered: