RFR: 8244533: Configure should abort on missing short names in Windows

Magnus Ihse Bursie ihse at openjdk.org
Wed May 7 13:51:54 UTC 2025


Windows can create short names for directories that contain spaces in the name.

However, where short name creation was previously enabled by default, it no longer seems to be in recent version of Windows (the default setting is instead 'per volume', and the default for each volume is 'off').

We should check that the output paths of these utility macros are actually space-free, and emit an error otherwise. We should also add additional documentation about short names, and the short name creation setting to doc/building.md.

When testing this in several different cases with path including spaces that either had or had not a short name, it became apparent that the current handling of such cases were not ... optimal. Hence some bug fixes were needed to properly handle such cases.

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

Commit messages:
 - 8244533: Configure should abort on missing short names in Windows

Changes: https://git.openjdk.org/jdk/pull/24483/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=24483&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8244533
  Stats: 125 lines in 6 files changed: 76 ins; 5 del; 44 mod
  Patch: https://git.openjdk.org/jdk/pull/24483.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/24483/head:pull/24483

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


More information about the build-dev mailing list