[
https://issues.apache.org/jira/browse/SPARK-45467?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sean R. Owen resolved SPARK-45467.
----------------------------------
Fix Version/s: 4.0.0
Resolution: Fixed
Issue resolved by pull request 43291
[https://github.com/apache/spark/pull/43291]
> Replace `Proxy.getProxyClass()` with `Proxy.newProxyInstance().getClass`
> ------------------------------------------------------------------------
>
> Key: SPARK-45467
> URL: https://issues.apache.org/jira/browse/SPARK-45467
> Project: Spark
> Issue Type: Sub-task
> Components: Spark Core
> Affects Versions: 4.0.0
> Reporter: Yang Jie
> Assignee: Yang Jie
> Priority: Major
> Labels: pull-request-available
> Fix For: 4.0.0
>
>
> {code:java}
> * @deprecated Proxy classes generated in a named module are encapsulated
> * and not accessible to code outside its module.
> * {@link Constructor#newInstance(Object...) Constructor.newInstance}
> * will throw {@code IllegalAccessException} when it is called on
> * an inaccessible proxy class.
> * Use {@link #newProxyInstance(ClassLoader, Class[], InvocationHandler)}
> * to create a proxy instance instead.
> *
> * @see <a href="#membership">Package and Module Membership of Proxy Class</a>
> * @revised 9
> */
> @Deprecated
> @CallerSensitive
> public static Class<?> getProxyClass(ClassLoader loader,
> Class<?>... interfaces)
> throws IllegalArgumentException {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]