[ https://issues.apache.org/jira/browse/SPARK-45467?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sean R. Owen reassigned SPARK-45467: ------------------------------------ Assignee: Yang Jie > 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 > > {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: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org