[ BUILD # : 200510131600 ]
[ JDK VERSION : 1.5.0_05 ]
1/ Tools->Library Manager ->New library...->specify a name
2/ Add JAR/Folder...->specify anything with a space, i.e. ' anything' (without the quotes)
You'll end up with a wrong library entry in red.
It's a JDK bug, see the attached project. Romane, can you be so kind and create
the JDK bug report? It is not nice and even not possible to fix it on our side,
I am not able to recognize ' anything' (1 space) from ' anything' (2 spaces)
even by heuristics.
Created attachment 26972 [details]
How to use the test project:
1) Run the project
2) Select the ' anything' from the JFileChooser
3) AssertionError is thrown, the returned File.getName() does not contain ' '
Should not be closed until JDK bug is filed and jdk_bug_* in status whiteboard,
Issue #6351074 is filed against JDK.