On Mon, 4 Aug 2025 21:25:41 GMT, Max Rydahl Andersen <[email protected]> wrote:
> The javadoc for setOpenURIHandler should refer to CFBundleURLTypes which is > what the code looks for as seen here: > > https://github.com/openjdk/jdk/blob/dc4d9b4849f6557f290338643910f0b05751d748/src/java.desktop/macosx/native/libawt_lwawt/awt/ApplicationDelegate.m#L245 > > --------- > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai). src/java.desktop/share/classes/java/awt/Desktop.java line 655: > 653: * @implNote Please note that for macOS, notifications > 654: * are only sent if the Java app is a bundled application, > 655: * with a {@code CFBundleURLTypes} array present in its This looks OK to me. The code has used the above since the initial macOS port. I suspect that this was a copy/paste error in the JDK 9 feature "8143227: Platform-Specific Desktop Features" which standardized the Apple APIS https://cr.openjdk.org/~azvegint/jdk/9/8143227/09/jdk/src/java.desktop/share/classes/java/awt/Desktop.java.sdiff.html @azvegint since that was your feature, please review this. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/26630#discussion_r3213841393
