RFD: Query param discrepancy in unix/windows file Handler:openConnection

Eirik Bjørsnøs eirbjo at gmail.com
Wed Apr 2 20:01:09 UTC 2025


On Wed, Apr 2, 2025 at 2:20 PM Alan Bateman <alan.bateman at oracle.com> wrote:

As a general point, neither method is correct when converting from a
> file URL to a file path. Much of the code here goes back to JDK 1.2 so
> we have to be careful with any changes.
>

Thanks Alan & Daniel.

Yes, I agree that the value of "fixing" this issue seems low.

The context for looking into this was that this is one of two things that
is behaviorally different between the Handler implementations, all other
differences are strictly code style and formatting noise.

Before implementing JDK-8353440 to disable FTP fallback by default I might
want to look into refactoring the handlers such that they are syntactically
similar and that the actual platform specific differences are easier to
spot and document. Currently, it's a bit of a head-twister to figure out
how exactly they differ in behavior vs syntax.

Thanks,
Eirik.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/net-dev/attachments/20250402/94da7f6a/attachment.htm>


More information about the net-dev mailing list