-
Enhancement
-
Resolution: Fixed
-
P3
-
15
-
None
`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.
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.
- csr for
-
JDK-8250224 Proxy::newProxyInstance spec should specify the behavior if a given proxy interface is hidden
-
- Closed
-
- relates to
-
JDK-8249939 Method::isVarargs of dynamic proxy generated method should match the proxy interface method
-
- Closed
-
-
JDK-8238358 Implementation of JEP 371: Hidden Classes
-
- Resolved
-