Tuesday, January 31, 2017
Minor API fixes for JDK 7
Minor API fixes for JDK 7
Josh, Doug and I are proposing a handful of minor API additions to the Java Class Libraries (lang, util, math and reflect) for JDK 7.
The very quick overview of our recommendations:
- Static compare() methods for all non-void wrapper classes, not just Double and Float.
- Static hashCode() methods on all non-void wrapper classes.
- Integer.mod() and Long.mod()
- RoundingMode.round(double)
- Arrays.concat()
- EnumSet.complementOf(Collection)
- All JDK maps should implement putIfAbsent(), etc.
- Proxy.newProxyInstance(type, handler)
Please have a read over the document. What do you think about our proposals? What do you think weve missed?
Available link for download