RFR JDK-8250219: Proxy::newProxyInstance spec should specify the behavior if a given proxy interface is hidden

Alan Bateman Alan.Bateman at oracle.com
Thu Jul 23 18:51:45 UTC 2020


On 23/07/2020 19:40, Mandy Chung wrote:
> CSR: https://bugs.openjdk.java.net/browse/JDK-8250224
>
> Webrev: 
> http://cr.openjdk.java.net/~mchung/jdk16/webrevs/8250219/webrev.00/
>
> This patch updates the `|Proxy::newProxyInstance` |spec to explicitly 
> list that the given interfaces must be non-hidden interfaces.|  
> Proxy::newProxyInstance| currently throws IAE if a given proxy 
> interface cannot be found by the given class loader. This covers for 
> the case of a hidden proxy interface since it is not discoverable by 
> any class loader. However the spec should clearly document the 
> behavior about hidden interfaces and the exception message indicates 
> if the interface is hidden clearly.
>
This looks good.

-Alan.


More information about the core-libs-dev mailing list