JDK-8250219 : Proxy::newProxyInstance spec should specify the behavior if a given proxy interface is hidden
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.lang:reflect
  • Affected Version: 15
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-07-23
  • Updated: 2020-08-11
  • Resolved: 2020-08-04
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 16
16 b09Fixed
Related Reports
CSR :  
Relates :  
Relates :  
Description
`Proxy::newProxyInstance` throws IAE if a given proxy interface is hidden since a hidden interface can't be named in another class.  The current implementation does throw IAE:

java.lang.IllegalArgumentException: HiddenInterface/0x0000000800c8f840 referenced from a method is not visible from class loader

The spec should be updated to specify that IAE will be thrown if a proxy interface is hidden.  In addition, the exception message can be improved and indicates a proxy interface can't be hidden.
Comments
URL: https://hg.openjdk.java.net/jdk/jdk/rev/234686a00794 User: mchung Date: 2020-08-04 17:36:35 +0000
04-08-2020