garydgregory at gmail.com
Thu Jul 13 18:31:06 UTC 2017
FYI: We added a couple of classes in Apache Commons Lang to deal with pairs
and triples. This is definitely for the pragmatic programmer...
On Thu, Jul 13, 2017 at 11:24 AM, Hohensee, Paul <hohensee at amazon.com>
> Thanks for the immediate response.
> Having read the thread, I understand the argument against including Pair
> in the JDK and personally agree with the sw engineering argument. But, it
> got into javafx.util somehow and is now effectively part of the JDK anyway,
> so that ship has sailed. Thus, it seemed reasonable me to just copy it from
> there into java.util, though there would be a maintenance headache if it
> were desired to keep them sync’ed.
> I suppose also that there’s a pov that having it in javafx.util indirectly
> encourages JavaFX adoption. (
> Anyhow, thanks for the explanation.
> On 7/13/17, 10:22 AM, "joe darcy" <joe.darcy at oracle.com> wrote:
> Hi Paul,
> See the discussion in thread:
> In short, no current plans to add java.util.Pair.
> On 7/13/2017 10:07 AM, Hohensee, Paul wrote:
> > See the ancient https://bugs.openjdk.java.net/browse/JDK-4947273.
> > At Amazon, many projects depend on JavaFX to get only a single
> class, namely javafx.util.Pair. That means that we must distribute OpenJFX
> along with our internal OpenJDK distribution, or split javafx.util.Pair out
> into a separate package, both of which we’d like to avoid in the future.
> So, are there any plans to add java.util.Pair to JDK10?
> > Thanks,
> > Paul
More information about the core-libs-dev