RFR: 8042906: Remove use of reflection in ORB
Chris Hegarty
chris.hegarty at oracle.com
Mon May 12 05:35:54 UTC 2014
Sean,
It is nice to see this code being cleaned up, and I agree with the changes.
You can use computeIfAbsent here, rather than, putIfAbsent, to avoid evaluating the result of setupPresentationManager() when there is already a mapping.
pmContexts.computeIfAbsent(appletContext, PresentationManage::setupPresentationManager);
-Chris.
On 11 May 2014, at 21:56, Seán Coffey <sean.coffey at oracle.com> wrote:
> Now that JDK 8 is the official build bootstrap JDK for JDK 9, we can remove use of reflection in ORB code to access the applet context.
>
> bug report : https://bugs.openjdk.java.net/browse/JDK-8042906
> webrev : http://cr.openjdk.java.net/~coffeys/webrev.8042906/webrev/
>
> regards,
> Sean.
More information about the core-libs-dev
mailing list