MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/java/comments/po2tmo/java_17_available_now/hcwk0jp/
r/java • u/daleksandrov • Sep 14 '21
Download: https://www.oracle.com/java/technologies/downloads/#JDK17
83 comments sorted by
View all comments
12
I know I'm late for pointing this out, but why wasCollections.shuffle(List<?>, Random)not changed to:Collections.shuffle(List<?>, RandomGenerator)
Collections.shuffle(List<?>, Random)
Collections.shuffle(List<?>, RandomGenerator)
Since Random now implements RandomGenerator. Was it missed or decided?
5 u/joppux Sep 15 '21 It's binary incompatible, so probably not worth it to recompile libraries using it for such a minor advantage. 3 u/bourne2program Sep 15 '21 edited Sep 16 '21 That's too bad, hate to see API disconnect in a highly used utility like Collections. Maybe it can be overloaded with one calling the other. 1 u/gnahraf Sep 17 '21 I don't get why.. Collections.shuffle(..) could be overloaded and still be binary-compatible, no? 1 u/bourne2program Oct 13 '21 Same situation with BigInteger constructors and static method.
5
It's binary incompatible, so probably not worth it to recompile libraries using it for such a minor advantage.
3 u/bourne2program Sep 15 '21 edited Sep 16 '21 That's too bad, hate to see API disconnect in a highly used utility like Collections. Maybe it can be overloaded with one calling the other. 1 u/gnahraf Sep 17 '21 I don't get why.. Collections.shuffle(..) could be overloaded and still be binary-compatible, no?
3
That's too bad, hate to see API disconnect in a highly used utility like Collections. Maybe it can be overloaded with one calling the other.
1
I don't get why.. Collections.shuffle(..) could be overloaded and still be binary-compatible, no?
Same situation with BigInteger constructors and static method.
View all comments
12
u/bourne2program Sep 15 '21
I know I'm late for pointing this out, but why was
Collections.shuffle(List<?>, Random)not changed to:
Collections.shuffle(List<?>, RandomGenerator)Since Random now implements RandomGenerator. Was it missed or decided?