[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-compiler-dev
Subject:    Re: JDK 9 RFR of JDK-8172910: Use default methods as appropriate for language model visitors
From:       Jonathan Gibbons <jonathan.gibbons () oracle ! com>
Date:       2017-01-18 23:19:38
Message-ID: 587FF80A.6010705 () oracle ! com
[Download RAW message or body]

Looks OK to me.

-- Jon

On 01/18/2017 02:45 PM, joe darcy wrote:
> Hello,
>
> When visitModule as added to ElementVisitor (JDK-8142968), it was 
> added as a normal abstract interface method. This approach was 
> necessary in analogous cases back in Java SE 8 since the package in 
> question is built under the previously JDK during the bootstrap 
> process. For 9, better source compatibility would come from using a 
> default method here.
>
> Please review the webrev which implements this improvement:
>
>     8172910: Use default methods as appropriate for language model 
> visitors
>     http://cr.openjdk.java.net/~darcy/8172910.1/
>
> Likewise, several convenience methods in the visitor interfaces can be 
> upgraded to default methods as a small convenience for those directly 
> implementing the interfaces.
>
> Thanks,
>
> -Joe
>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic