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
Code that compiles with Scala 2.10.3, but does not compile with 2.11.0-RC1. Earlier I was testing with JavaFX in Java 7 (#8197). Just tested with JavaFX 8, where there are some API changes, compared to 7, causing errors with 2.11.0-RC1.
Here is a sample error:
[error] ...\scalafx.hg-sfx-8\scalafx\src\main\scala\scalafx\delegate\AlignmentPropertyDelegate.scala:33: ambiguous reference to overloaded definition,
[error] both method select in object Bindings of type (x$1: Any, x$2: <repeated...>[String])javafx.beans.binding.ObjectBinding[javafx.geometry.Pos]
[error] and method select in object Bindings of type (x$1: javafx.beans.value.ObservableValue[_], x$2: <repeated...>[String])javafx.beans.binding.ObjectBinding[javafx.geometry.Pos]
[error] match argument types (javafx.beans.property.ReadOnlyObjectProperty[_$1],String)
[error] def alignment = jfxbb.Bindings.select[jfxg.Pos](delegate, "alignment")
[error] ^
There are two overloaded methods for jfxbb.Bindings.select In JavaFX 8
@adriaanm said:
Could you explain which overload you'd expect to be picked and why the other isn't applicable? Ideally with some self-contained example.
Jarek Sacha (jpsacha) said (edited on Mar 10, 2014 2:33:57 PM UTC):
Attached is a simple SBT project with fist level minimization of the issue. There are two source files. One in Java implementing an overloaded select method. One in Scala that is attempting to use that method. It is intended for Java 7. Compiles fine in Scala 2.10.3 (no warnings), but not in 2.11.0-RC1.
This is really issue with 2.11.0-RC1, not with Java 8.
Code that compiles with Scala 2.10.3, but does not compile with 2.11.0-RC1. Earlier I was testing with JavaFX in Java 7 (#8197). Just tested with JavaFX 8, where there are some API changes, compared to 7, causing errors with 2.11.0-RC1.
Here is a sample error:
There are two overloaded methods for jfxbb.Bindings.select In JavaFX 8
I think I seen it before in some issue already in JIRA but can't remember the link.
The text was updated successfully, but these errors were encountered: