You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2024/12/16 14:22:00 UTC

[jira] [Commented] (HADOOP-19367) Fix setting final field value on Java 17

    [ https://issues.apache.org/jira/browse/HADOOP-19367?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17906066#comment-17906066 ] 

ASF GitHub Bot commented on HADOOP-19367:
-----------------------------------------

pan3793 opened a new pull request, #7228:
URL: https://github.com/apache/hadoop/pull/7228

   <!--
     Thanks for sending a pull request!
       1. If this is your first time, please read our contributor guidelines: https://cwiki.apache.org/confluence/display/HADOOP/How+To+Contribute
       2. Make sure your PR title starts with JIRA issue id, e.g., 'HADOOP-17799. Your PR title ...'.
   -->
   
   ### Description of PR
   
   Some tests use reflection to modify the final field value, which does not work after [JDK-8210522](https://bugs.openjdk.org/browse/JDK-8210522) (since JDK 12), this PR replaces them with a new approach that works with Java 8+
   
   ### How was this patch tested?
   
   The existing tests ensure it works well for Java 8, and I tested it locally with JDK 17
   
   ```
   [INFO] -------------------------------------------------------
   [INFO]  T E S T S
   [INFO] -------------------------------------------------------
   [INFO] Running org.apache.hadoop.hdfs.TestStoragePolicyPermissionSettings
   [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.514 s 

> Fix setting final field value on Java 17
> ----------------------------------------
>
>                 Key: HADOOP-19367
>                 URL: https://issues.apache.org/jira/browse/HADOOP-19367
>             Project: Hadoop Common
>          Issue Type: Test
>          Components: test
>            Reporter: Cheng Pan
>            Priority: Major
>




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

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org