On 21/11/2026 00:44, Nir Lisker wrote:
Is there any interest in this?

There have been several explorations and prototypes on this topic but no agreement to expose an API.  On the surface it seems like a straight forward thing but it gets complicated once you start to dig into it. There are lots of questions around whether the standard API should attempt to define what the platforms are. There are issues with what to do on other platforms. What happens when a new platform is introduced or becomes obsolete? Some platforms can support more than one ABI, e.g. can Linux binaries run on BSD? Some of the classification in prototypes has broken down when you get into glibc vs. musl, WSL, ...  There's a lot more but hopefully gives us some context as to why the enum and other classes to support this in the JDK are in a JDK internal package.

-Alan

Reply via email to