On Wed, 10 May 2023 19:23:39 GMT, Phil Race <p...@openjdk.org> wrote:
>> I agree, I'll try to come up with something less confusing. > > If there's no exception, how does the application know the colours aren't > valid ? > I think throwing the exception should be preferred behaviour and undefined > colours would be just if we had no way to detect that there was a problem. BTW in the implementation PR, Alexander wrote The [DENY case](https://github.com/azvegint/jdk/blob/482471df61490120590bc49886f76dc99c3d7dd8/src/java.desktop/unix/native/libawt_xawt/awt/screencast_portal.c#L586-L591) propagated to java and we are throwing the security exception. So I interpret this as there is a use case for the exception. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/13809#discussion_r1190414990