RFR: 8261404: Class.getReflectionFactory() is not thread-safe

Roger Riggs rriggs at openjdk.java.net
Thu Dec 16 21:24:57 UTC 2021


On Thu, 16 Dec 2021 21:04:58 GMT, liach <duke at openjdk.java.net> wrote:

> Simply changes this to only read the static field once to prevent `null` on second read.

It would be easier to read and clearer if the local was not named the same as the static.

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

Changes requested by rriggs (Reviewer).

PR: https://git.openjdk.java.net/jdk/pull/6870


More information about the core-libs-dev mailing list