On Fri, 6 Dec 2024 16:51:48 GMT, Kevin Rushforth <k...@openjdk.org> wrote:

>> This PR removes obsolete permission check methods and fields from 
>> Font-related classes.
>> 
>> Verified the changes on Windows, did not see any regressions.
>
> modules/javafx.graphics/src/main/java/com/sun/javafx/font/PrismFontFactory.java
>  line 1375:
> 
>> 1373:         if (FontFileWriter.hasTempPermission()) {
>> 1374:             return loadEmbeddedFont0(name, fontStream, size, register, 
>> loadAll);
>> 1375:         }
> 
> This test always returns true today, so it looks like you removed the code 
> path that was in use. Unless I'm missing something, I think that you should 
> restore the "return loadEmbeddedFont0" call and remove everything else below 
> this point from this method.

Yes, this should always `return loadEmbeddedFont0`. Again, some Friday-related 
mishap.

-------------

PR Review Comment: https://git.openjdk.org/jfx/pull/1659#discussion_r1875926343

Reply via email to