maptool
maptool copied to clipboard
[Bug]: Open / Save dialog can fail to open under windows 10/11 when there are duplicate files
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 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 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.