You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Istvan Toth (Jira)" <ji...@apache.org> on 2025/10/27 11:13:00 UTC
[jira] [Resolved] (HBASE-29547) IllegalAccessException: static final field has no write access in tests with Java 21
[ https://issues.apache.org/jira/browse/HBASE-29547?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Istvan Toth resolved HBASE-29547.
---------------------------------
Resolution: Duplicate
> IllegalAccessException: static final field has no write access in tests with Java 21
> ------------------------------------------------------------------------------------
>
> Key: HBASE-29547
> URL: https://issues.apache.org/jira/browse/HBASE-29547
> Project: HBase
> Issue Type: Bug
> Components: test
> Reporter: Istvan Toth
> Assignee: Istvan Toth
> Priority: Major
> Labels: jdk21, pull-request-available
>
> Affected tests:
> * TestByteBufferUtils
> * TestBytes
> * TestCompactionToolNpeFix
> * TestBackupSmallTests
> * TestRSGroupsKillRS
> * org.apache.hadoop.hbase.mapreduce.TestHBaseMRTestingUtility
> * org.apache.hadoop.hbase.snapshot.TestSecureExportSnapshot
> * org.apache.hadoop.hbase.snapshot.TestMobSecureExportSnapshot
> * org.apache.hadoop.hbase.replication.TestVerifyReplicationCrossDiffHdfs
> * org.apache.hadoop.hbase.util.TestFromClientSide3WoUnsafe
> * TestBackupBase (all children)
> {noformat}
> [ERROR] TestByteBufferUtils.<init>:124->disableUnsafe:100->setUnsafe:92 » Internal java.lang.IllegalAccessException: static final field has no write access: org.apache.hadoop.hbase.util.ByteBufferUtils.UNSAFE_AVAIL/boolean/putStatic, from class java.lang.Object (module java.base)
> [ERROR] TestBytes.testFindCommonPrefix:591->testFindCommonPrefix:600->setUnsafe:66 » Internal java.lang.IllegalAccessException: static final field has no write access: org.apache.hadoop.hbase.util.Bytes.UNSAFE_UNALIGNED/boolean/putStatic, from class java.lang.Object (module java.base)
> [ERROR] TestBytes.testFindCommonPrefixUnsafe:596->testFindCommonPrefix:600->setUnsafe:66 » Internal java.lang.IllegalAccessException: static final field has no write access: org.apache.hadoop.hbase.util.Bytes.UNSAFE_UNALIGNED/boolean/putStatic, from class java.lang.Object (module java.base)
> [ERROR] TestBytes.testShort:75->testShort:84->setUnsafe:66 » Internal java.lang.IllegalAccessException: static final field has no write access: org.apache.hadoop.hbase.util.Bytes.UNSAFE_UNALIGNED/boolean/putStatic, from class java.lang.Object (module java.base)
> [ERROR] TestBytes.testShortUnsafe:80->testShort:84->setUnsafe:66 » Internal java.lang.IllegalAccessException: static final field has no write access: org.apache.hadoop.hbase.util.Bytes.UNSAFE_UNALIGNED/boolean/putStatic, from class java.lang.Object (module java.base)
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)