RFR: 8272564: Incorrect attribution of method invocations of Object methods on interfaces [v2]

Jan Lahoda jlahoda at openjdk.java.net
Thu Aug 19 12:57:06 UTC 2021


On Wed, 18 Aug 2021 14:16:10 GMT, Jim Laskey <jlaskey at openjdk.org> wrote:

>> Jan Lahoda has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Removing unnecessary method call.
>
> test/langtools/tools/javac/api/TestIsAccessible.java line 61:
> 
>> 59:             for (Element member : ct.getElements().getAllMembers(name)) {
>> 60:                 if (!trees.isAccessible(s, member, (DeclaredType) name.asType())) {
>> 61:                     trees.isAccessible(s, member, (DeclaredType) name.asType());
> 
> Why is this statement necessary?

Ooops, that is a leftover from testing (so that I can easily put a breakpoint on the call when false).

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

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


More information about the compiler-dev mailing list