On Mon, 15 May 2023 17:57:21 GMT, Andy Goryachev <ango...@openjdk.org> wrote:
>> Even if there is, this still shouln't stop us using new language features, >> should it? Otherwise we can't really use any new feature, as a fix *might* >> be backported. >> On the other hand it is also easy to replace this text block when backported. > > it could also be a one liner This is a similar case to using pattern matching `instanceof`, which we've started using in new code. My thinking is that in new code it's should be OK to use new language features in new code, unless we know that it is a bug fix that needs to be backported. ------------- PR Review Comment: https://git.openjdk.org/jfx/pull/1072#discussion_r1194203537