RFR: 8287822: [macos] Remove support of duplicated formats from macOS [v3]

Andy Goryachev angorya at openjdk.org
Thu Oct 13 22:29:14 UTC 2022


On Tue, 11 Oct 2022 21:41:55 GMT, Kevin Rushforth <kcr at openjdk.org> wrote:

>> tests/manual/media/FXMediaPlayer/src/fxmediaplayer/media/FXMedia.java line 97:
>> 
>>> 95:                 uri = FXMedia.class.getResource("/fxmediaplayer/media").toURI();
>>> 96: 
>>> 97:                 if (uri.getScheme().equals("jar")) {
>> 
>> is it possible for uri scheme to be null?
>> may be "jar".equals(uri.getScheme()) ?
>
> Related question: Can `uri` itself be null?

so the logic seems to be either a "jar", or else it's a file, right?
is it possible to be something else (i.e. the resource is missing altogether)? or some other condition?

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

PR: https://git.openjdk.org/jfx/pull/909


More information about the openjfx-dev mailing list