From 5d92324d9c91a5bd1f283d10be11e00f28b45b57 Mon Sep 17 00:00:00 2001 From: alexander_matveev Date: Wed, 5 Aug 2026 17:27:24 -0700 Subject: [PATCH] 8374836: Media: add missing jrt protocol to javadoc --- .../src/main/java/javafx/scene/media/Media.java | 7 ++++--- .../src/main/java/javafx/scene/media/package-info.java | 7 ++++++- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/modules/javafx.media/src/main/java/javafx/scene/media/Media.java b/modules/javafx.media/src/main/java/javafx/scene/media/Media.java index 16f3b2c780e..035ca5a05fd 100644 --- a/modules/javafx.media/src/main/java/javafx/scene/media/Media.java +++ b/modules/javafx.media/src/main/java/javafx/scene/media/Media.java @@ -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 getMarkers() { /** * Constructs a Media instance. This is the only way to * specify the media source. The source must represent a valid URI - * and is immutable. Only HTTP, HTTPS, FILE, and JAR URLs are supported. If the + * and is immutable. Only HTTP, HTTPS, FILE, JAR, and JRT URLs 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. @@ -353,12 +353,13 @@ public final ObservableMap getMarkers() { *
    *
  • The supplied URI must conform to RFC-2396 as required by * java.net.URI.
  • - *
  • Only HTTP, HTTPS, FILE, and JAR URIs are supported.
  • + *
  • Only HTTP, HTTPS, FILE, JAR, and JRT URIs are supported.
  • *
* *

See java.net.URI * for more information about URI formatting in general. * JAR URL syntax is specified in java.net.JarURLConnection. + * JRT URL syntax is specified in JEP 220: Modular Run-Time Images. * * @param source The URI of the source media. * @throws NullPointerException if the URI string is null. diff --git a/modules/javafx.media/src/main/java/javafx/scene/media/package-info.java b/modules/javafx.media/src/main/java/javafx/scene/media/package-info.java index 86773778b00..9c5cc284da8 100644 --- a/modules/javafx.media/src/main/java/javafx/scene/media/package-info.java +++ b/modules/javafx.media/src/main/java/javafx/scene/media/package-info.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, 2025, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013, 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 @@ -138,6 +138,11 @@ * java.net.JarURLConnection * * + * JRT + * Representation of media resources in the Java run-time image + * JEP 220: Modular Run-Time Images + * + * * HTTP Live Streaming (HLS) * Playlist-based media streaming via HTTP or HTTPS * HTTP Live Streaming (RFC 8216)