maptool icon indicating copy to clipboard operation
maptool copied to clipboard

[Bug]: Open / Save dialog can fail to open under windows 10/11 when there are duplicate files

Open cwisniew opened this issue 10 months ago • 2 comments

Describe the Bug

Windows 10/11 allows duplicate file names in a directory as long as one is marked as a special file type and one is not. There is a bug in the JDK where sorting any directory that contains such a duplicate file name is unstable as the special flag is not part of the comparison.

Seee https://bugs.openjdk.org/browse/JDK-8305072

To Reproduce

This is actually quite hard to reproduce but 2 people so far have had the issue in discord

Expected Behaviour

It should not fail

Screenshots

No response

MapTool Info

MapTool 1.13 onwards

Desktop

Windows 10 and 11

Additional Context

No response

cwisniew avatar Oct 20 '23 04:10 cwisniew

@cwisniew Have you seen any updates about whether this issue was resolved? If not, we can close it off.

And an update on the underlying issue: a PR was recently submitted, so hopefully this will soon be solved in openjdk itself.

kwvanderlinde avatar Apr 01 '24 22:04 kwvanderlinde

@kwvanderlinde It was reported as working in the one off build I did before creating a PR. I have removed it from the project but left it open as once the bug is fixed in the JDK I want to remove the work around.

cwisniew avatar Apr 02 '24 07:04 cwisniew