On Thu, 20 May 2021 16:53:06 GMT, Alexander Zuev <kiz...@openjdk.org> wrote:
>> As for the example on Linux, how it will work for different sizes? >> Icon icon1 = fsv.getSystemIcon(new File("."), 16); >> Icon icon2 = fsv.getSystemIcon(new File("."), 32); >> Will the resulted icons have proper size 16 and 32? > > No they will have the same size. That's why the broad wording is used that we > take a requested size into consideration but we will return the best possible > icon we can get and we do not guarantee that the icon size will change the > outcome. Even on Windows if we request icon if sizes 1, 2, 3 and 4 the icon > will be basically the same - minimal quality icon available. > My point was that the implspec is a normative specification and we cannot > refer to non-public classes in that documentation. implSpec may describe the behavior of the default implementation and if it means referring the non-public API to clarify the behavior of this method i do not see any issue here. ------------- PR: https://git.openjdk.java.net/jdk/pull/2875