Uploaded image for project: 'Apache Hudi'
  1. Apache Hudi
  2. HUDI-4687

Avoid all illegal reflective access in the code

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      Since Java 16, certain kinds of reflective access is no longer allowed. Check JEP 396 on strong encapsulation for more details: https://openjdk.org/jeps/396

      One such example in our code is the usage of Field.setAccessible(true) in ObjectSizeCalculator. This code will throw InaccessibleObjectException when running on jdk16 or higher. We should avoid such illegal reflective access.

      Attachments

        Activity

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

          People

            codope Sagar Sumit
            codope Sagar Sumit
            Alexey Kudinkin, Ethan Guo (this is the old account; please use "yihua")
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Agile

                Completed Sprints:
                2022/09/05 ended 19/Sep/22
                2022/09/19 ended 04/Oct/22
                View on Board

                Slack

                  Issue deployment