Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update FileID.getExtension() behaviors to match new JDK 20 Path.getExtension() behaviors #8923

Closed
joakime opened this issue Nov 21, 2022 · 2 comments · Fixed by #8924
Closed
Assignees

Comments

@joakime
Copy link
Contributor

joakime commented Nov 21, 2022

Jetty version(s)
Jetty 12

Enhancement Description
Now that we have various FileID.getExtension(*) implementations.
We should align it's behavior with the JDK 20 Path.getExtension() API behavior.

https://bugs.openjdk.org/browse/JDK-8057113

@joakime
Copy link
Contributor Author

joakime commented Nov 21, 2022

Per discussion on mailing lists, some examples of expected returns on JDK 20.

Input Result
"foo.tar.gz" "gz"
"foo.bar" "bar"
"foo." ""
"foo" null
".bar" null

@joakime
Copy link
Contributor Author

joakime commented Nov 22, 2022

Merged into jetty-12.0.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant