-
Notifications
You must be signed in to change notification settings - Fork 583
8294872: Document "resource" protocol #2251
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
base: master
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,5 +1,5 @@ | ||||||
| /* | ||||||
| * Copyright (c) 2010, 2024, Oracle and/or its affiliates. All rights reserved. | ||||||
| * Copyright (c) 2010, 2026, Oracle and/or its affiliates. All rights reserved. | ||||||
| * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | ||||||
| * | ||||||
| * This code is free software; you can redistribute it and/or modify it | ||||||
|
|
@@ -336,7 +336,7 @@ public final ObservableMap<String, Duration> getMarkers() { | |||||
| /** | ||||||
| * Constructs a <code>Media</code> instance. This is the only way to | ||||||
| * specify the media source. The source must represent a valid <code>URI</code> | ||||||
| * and is immutable. Only HTTP, HTTPS, FILE, and JAR <code>URL</code>s are supported. If the | ||||||
| * and is immutable. Only HTTP, HTTPS, FILE, JAR, and RESOURCE <code>URL</code>s are supported. If the | ||||||
| * provided URL is invalid then an exception will be thrown. If an | ||||||
| * asynchronous error occurs, the {@link #errorProperty error} property will be set. Listen | ||||||
| * to this property to be notified of any such errors. | ||||||
|
|
@@ -352,13 +352,15 @@ public final ObservableMap<String, Duration> getMarkers() { | |||||
| * <p>Constraints: | ||||||
| * <ul> | ||||||
| * <li>The supplied URI must conform to RFC-2396 as required by | ||||||
| * <A href="https://docs.oracle.com/javase/8/docs/api/java/net/URI.html">java.net.URI</A>.</li> | ||||||
| * <li>Only HTTP, HTTPS, FILE, and JAR URIs are supported.</li> | ||||||
| * <a href="https://docs.oracle.com/javase/8/docs/api/java/net/URI.html">java.net.URI</a>.</li> | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why are we referencing java8 docs?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. URI is not part of JavaFX, so we cannot use relative ref. Also, I found that JavaFX docs a published in several places, so using something like "../../URI.html" will not work. I can update Java 8 links to latest, but I am not sure what policy we have in term of referencing old JDK releases and should we keep updating it to latest docs with each release. For example JavaFX 27 will point to JDK 27 docs.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Gradle is configured to generate Javadocs with links to the documentation for the supported JDK version. See:
Therefore, you should be able to replace:
with:
|
||||||
| * <li>Only HTTP, HTTPS, FILE, JAR, and RESOURCE URIs are supported. | ||||||
| * RESOURCE URIs are supported only in statically linked applications.</li> | ||||||
| * </ul> | ||||||
| * | ||||||
| * <p>See <A href="https://docs.oracle.com/javase/8/docs/api/java/net/URI.html">java.net.URI</A> | ||||||
| * <p>See <a href="https://docs.oracle.com/javase/8/docs/api/java/net/URI.html">java.net.URI</a> | ||||||
| * for more information about URI formatting in general. | ||||||
| * JAR URL syntax is specified in <a href="https://docs.oracle.com/javase/8/docs/api/java/net/JarURLConnection.html">java.net.JarURLConnection</A>. | ||||||
| * JAR URL syntax is specified in <a href="https://docs.oracle.com/javase/8/docs/api/java/net/JarURLConnection.html">java.net.JarURLConnection</a>. | ||||||
| * RESOURCE URL syntax is specified in <a href="https://www.graalvm.org/latest/reference-manual/native-image/dynamic-features/URLProtocols/">URL Protocols in Native Image</a>. | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. similar question: why refer to graalvm.org?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I found this one |
||||||
| * | ||||||
| * @param source The URI of the source media. | ||||||
| * @throws NullPointerException if the URI string is <code>null</code>. | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just out of curiosity, could we use the actual codes ("https:", "jar:", ...) instead of HTTPS, JAR, ...?