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

Avoid all illegal reflective access in the code

    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

        Issue Links

          Activity

            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: