RFR: 8203679: AssertionError in DeferredAttr with parenthesized method reference

Liam Miller-Cushon cushon at google.com
Sat Jun 9 02:46:44 UTC 2018


Hi,

Please consider the following fix for JDK-8203679.

I added some notes to the bug:
https://bugs.openjdk.java.net/browse/JDK-8203679?focusedCommentId=14186441&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14186441

The proposed fix seems harmless assuming this implementation comment is
correct:

> once the value for overloadKind is determined for a copy, it can be
safely forwarded to
> the copied tree, we want to profit from that

The current logic only propagates the overloadKind to the copied tree the
first time an overloadKind is set for any copy of that tree. If it was
possible to compute different overloadKinds for different copies, that
approach wouldn't work. I added an assertion that the computed overloadKind
is stable to make sure that assumption holds.

bug: https://bugs.openjdk.java.net/browse/JDK-8203679
webrev: http://cr.openjdk.java.net/~cushon/8203679/webrev.00/

Thanks,
Liam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20180608/2aa9d5a8/attachment.html>


More information about the compiler-dev mailing list