RFR: 8139228: JFileChooser renders file names as HTML document

Alexey Ivanov aivanov at openjdk.org
Tue Apr 22 15:37:47 UTC 2025


On Tue, 22 Apr 2025 10:42:42 GMT, Tejesh R <tr at openjdk.org> wrote:

>>> Because it's impossible to create a file with `<html>` in the name on Windows.
>> 
>> But is should be possible to trigger the bug using a custom FileSystemView without interacting with the actual file system?
>
> @mrserb You mean to say that, same issue would be their for Windows L&F too, since we are unable to test it directly it's been missed ?

> > Because it's impossible to create a file with `<html>` in the name on Windows.
> 
> But is should be possible to trigger the bug using a custom FileSystemView without interacting with the actual file system?

An interesting idea. Using a custom `FileSystemView` for testing on Windows should be explored.

> @mrserb You mean to say that, same issue would be their for Windows L&F too, since we are unable to test it directly it's been missed ?

@TejeshR13 I'm pretty sure Windows L&F is affected too.

You could remediated the issue by setting `"html.disable"` on `FilePane`, but it may be not enough as you also modified `FileChooserUI` for each L&F.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/24439#discussion_r2054373966


More information about the client-libs-dev mailing list