You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "Raymond Xu (Jira)" <ji...@apache.org> on 2022/09/29 15:38:00 UTC

[jira] [Closed] (HUDI-4687) Avoid all illegal reflective access in the code

     [ https://issues.apache.org/jira/browse/HUDI-4687?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Raymond Xu closed HUDI-4687.
----------------------------
    Resolution: Fixed

> Avoid all illegal reflective access in the code
> -----------------------------------------------
>
>                 Key: HUDI-4687
>                 URL: https://issues.apache.org/jira/browse/HUDI-4687
>             Project: Apache Hudi
>          Issue Type: Task
>          Components: writer-core
>            Reporter: Sagar Sumit
>            Assignee: Sagar Sumit
>            Priority: Critical
>              Labels: jdk, pull-request-available, reflection, writer
>             Fix For: 0.12.1
>
>
> 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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)