[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-2d-dev
Subject:    Integrated: 8308780: Fix the Java Integer types on Windows
From:       Julian Waters <jwaters () openjdk ! org>
Date:       2023-06-25 23:46:17
Message-ID: MXS9qJEUSawtZOjSVthEal4GTj6-igakdl6GvYg200s=.fe2c1484-8ea9-4584-b4da-d5def77bb101 () github ! com
[Download RAW message or body]

On Wed, 24 May 2023 13:56:05 GMT, Julian Waters <jwaters@openjdk.org> wrote:

> 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

This pull request has now been integrated.

Changeset: c92b049d
Author:    Julian Waters <jwaters@openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/c92b049db7853a061ce05cebdc1fd73205ed0c83
                
Stats:     28 lines in 10 files changed: 0 ins; 5 del; 23 mod

8308780: Fix the Java Integer types on Windows

Reviewed-by: dholmes, djelinski, aivanov

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

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic