RFR: 8159746: (proxy) Support for default methods

Alan Bateman Alan.Bateman at oracle.com
Wed Oct 7 14:36:46 UTC 2020


On 07/10/2020 00:42, Mandy Chung wrote:
> On Wed, 30 Sep 2020 19:11:37 GMT, Mandy Chung <mchung at openjdk.org> wrote:
>
>>> The https://github.com/mlchung/jdk/pull/1 has been updated.
>> @plevart  I have merged your PR and made minor tweak.
>>
>> Please review CSR:  https://bugs.openjdk.java.net/browse/JDK-8253870
> Joe has given some feedback in the CSR review.
>> should this functionality be housed in the InvocationHandler interface rather than the Proxy class? If I understand the
>> intended usage of the new method, it should only be done in an InvocationHandler.
> The primary usage of this new method is `InvocationHandler`.  I agree that the new API should be defined in
> `InvocationHandler`.
>
> @plevart @AlanBateman any feedback or thought on moving the new API to `InvocationHandler`?
>
>
Are you thinking of a static method or a default method that throws and 
is overridden in the generated proxy class?

-Alan.


More information about the core-libs-dev mailing list