org.apache.ignite.internal.util.GridUnsafe uses deprecated sun.misc.Unsafe offest methods which throw UnsupportedOperationExceptions for Java Records
Open
- Dominant language
- Java
- Stars
- 5.1k
- Forks
- 1.9k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 46
Description
`org.apache.ignite.internal.util.GridUnsafe.objectFieldOffset(Field)` and `staticFieldOffset(Field) `will throw an `UnsupportedOperationException` for records since they use the matching (and deprecated since Java 18) methods from `jdk.unsupported:sun.misc.Unsafe`.
Contributor guide
Research direction
Start with org.apache.ignite.internal.util.GridUnsafe and inspect objectFieldOffset(Field) and staticFieldOffset(Field), then reproduce the UnsupportedOperationException with fields declared by a Java record. Done means these entry points no longer fail for records while preserving existing offset behavior; the issue does not name a regression test or test file.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100