JDK-8156711 : Runtime.Version.version should be an int[] instead of a List
  • Type: Bug
  • Component: other-libs
  • Sub-Component: other
  • Affected Version: 10
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • Submitted: 2016-05-11
  • Updated: 2025-01-17
  • Resolved: 2025-01-17
Related Reports
Relates :  
Description
http://mail.openjdk.java.net/pipermail/core-libs-dev/2016-February/039096.html

"I think it would be better to internally maintain an int[] for the version numbers rather than List<Integer>, that is more efficient in terms of space and comparing/equality (you can even use the new array comparison methods, thus the compareVersion becomes a one-liner)."


Comments
The exisiting API was shipped in JDK 9 (GA Sep 2017). There appears to be no case to change it at this time.
17-01-2025