RFR: 8308780: Fix the Java Integer types on Windows [v11]

Julian Waters jwaters at openjdk.org
Fri Jun 23 02:38:13 UTC 2023


> On Windows, the basic Java Integer types are defined as long and __int64 respectively. In particular, the former is rather problematic since it breaks compilation as the Visual C++ becomes stricter and more compliant with every release, which means the way Windows code treats long as a typedef for int is no longer correct, especially with -permissive- enabled. Instead of changing every piece of broken code to match the jint = long typedef, which is far too time consuming, we can instead change jint to an int (which is still the same 32 bit number type as long), as there are far fewer problems caused by this definition. It's better to get this over and done with sooner than later when a future version of Visual C++ finally starts to break on existing code

Julian Waters has updated the pull request incrementally with two additional commits since the last revision:

 - Revert wrong Copyright
 - Copyright

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/14125/files
  - new: https://git.openjdk.org/jdk/pull/14125/files/80b6f787..16b5a914

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=14125&range=10
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=14125&range=09-10

  Stats: 7 lines in 7 files changed: 0 ins; 0 del; 7 mod
  Patch: https://git.openjdk.org/jdk/pull/14125.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/14125/head:pull/14125

PR: https://git.openjdk.org/jdk/pull/14125


More information about the core-libs-dev mailing list