by Terr_ · 8y ago · 0 comments
The title [Edit: since changed] is a little bit fear-monger-y. It's only broken when the left hand side is not safe to evaluate more than once.
It can be prevented with a compile-time flag.
Java 9 broke other things. Here is one: https://github.com/andy-goryachev/FxDock/issues/8 WebView is working fine in 8, totally broken in 9, partially broken in 10. Do they have a QA department?
That said, javafx is a bit of an orphan compared the rest of the JDK. And that's why it's getting pushed out.
What a dramatic change over what seems to be a solvable memory leak. I only toyed with JavaFX but at least it's webview is dead to me.
The ease of avoidance is unrelated to whether it's broken behavior or not.
array[i++] += i ... array[i++] += "a"
is just is broken. So is appending to array[foo()] or foo().fieldAlso: it only breaks when it's an array of Strings.
The brakes on my car aren't broken most of the time, it's only when I push down on the pedal!