RFR: 8252180: [JEP 390] Deprecate wrapper class constructors for removal

Roger Riggs rriggs at openjdk.java.net
Fri Oct 9 17:54:30 UTC 2020


The public constructors of the following classes have been deprecated since SE 9, and should be deprecated for removal
in anticipation of these classes becoming inline classes.

java.lang.Boolean, Byte, Short, Integer, Long, Float, Double, and Character.

Existing uses of the constructors are converted to use the .valueOf(xxx) methods in classes and tests.

-------------

Commit messages:
 - Deprecate primitive wrapper types for 'removal' and related updates

Changes: https://git.openjdk.java.net/valhalla/pull/221/files
 Webrev: https://webrevs.openjdk.java.net/?repo=valhalla&pr=221&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8252180
  Stats: 115 lines in 21 files changed: 66 ins; 0 del; 49 mod
  Patch: https://git.openjdk.java.net/valhalla/pull/221.diff
  Fetch: git fetch https://git.openjdk.java.net/valhalla pull/221/head:pull/221

PR: https://git.openjdk.java.net/valhalla/pull/221



More information about the valhalla-dev mailing list