On Thu, 31 Oct 2024 17:42:04 GMT, Kevin Rushforth <[email protected]> wrote:
>> modules/javafx.graphics/src/main/java/com/sun/javafx/font/PrismFontFile.java
>> line 137:
>>
>>> 135: isCopy = isDecoded = false;
>>> 136: } catch (Exception e) {
>>> 137: } finally {
>>
>> even though the code change is equivalent, it will print "temp file not
>> deleted" followed by "temp file deleted".
>
> Since this is preexisting, do you think it is worth a follow-up issue? Worth
> noting is that the prints only happen when a debug system property is set.
>
> I have a separate question: Is the `finally` statement really needed? Given
> that `Exception` is caught and ignored, the only thing that adding `finally`
> will do is run the code if there is an `Error` thrown. That doesn't seem
> necessary, and also isn't equivalent to the previous code.
well, the original code is just sloppy, but we have a policy of not fixing
unrelated issues, or even adding comments pointing out the sloppy code.
in this case, we can probably ignore it - it's probably not worth fixing since
it's a debug output.
-------------
PR Review Comment: https://git.openjdk.org/jfx/pull/1619#discussion_r1825010863