Today I stumbled across a bug in the java file handling on windows. On Windows you can have multiple Strings denoting the same file. Like “TEST.txt” and “test.txt”. If you create two file Objects with different names accessing the same file and compare the objects using equals you will get false.
You should read the answer. There’s a workaround, but it kills all the nice things about OO. So now I can’t do a List
Leave a Reply