RFR: 8346872: tools/jpackage/windows/WinLongPathTest.java fails [v2]

Alexey Semenyuk asemenyuk at openjdk.org
Fri Jan 3 21:53:44 UTC 2025


On Fri, 3 Jan 2025 21:30:02 GMT, Alexander Matveev <almatvee at openjdk.org> wrote:

> What I mean is what will happen if following command run manually by user from terminal without DOS file names support

If file conversion fails, jpackage will show `Failed to get short version of <long-path> path` error message, where `<long-path>` is an absolute path requested to be converted into DOS path.

See [src/jdk.jpackage/windows/classes/jdk/jpackage/internal/ShortPathUtils.java](https://github.com/openjdk/jdk/blob/07c9f7138affdf0d42ecdc30adcb854515569985/src/jdk.jpackage/windows/classes/jdk/jpackage/internal/ShortPathUtils.java#L70) and [WinResources.properties](https://github.com/openjdk/jdk/blob/07c9f7138affdf0d42ecdc30adcb854515569985/src/jdk.jpackage/windows/classes/jdk/jpackage/internal/resources/WinResources.properties#L59)

PS The question is unrelated to the subject of this PR.

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

PR Comment: https://git.openjdk.org/jdk/pull/22896#issuecomment-2569863802


More information about the core-libs-dev mailing list