Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-45315 Drop JDK 8/11 and make JDK 17 by default
  3. SPARK-45467

Replace `Proxy.getProxyClass()` with `Proxy.newProxyInstance().getClass`

Attach filesAttach ScreenshotVotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

       * @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 

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            LuciferYang Yang Jie
            LuciferYang Yang Jie
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment