<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://jogamp.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.2"
          urlbase="https://jogamp.org/bugzilla/"
          
          maintainer="sgothel@jausoft.com"
>

    <bug>
          <bug_id>1532</bug_id>
          
          <creation_ts>2025-08-30 11:54:40 +0200</creation_ts>
          <short_desc>UnsafeUtil: Remove usage of deprecated field `sun.misc.Unsafe::objectFieldOffset` (JDK 24 warning)</short_desc>
          <delta_ts>2025-08-30 11:58:51 +0200</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Gluegen</product>
          <component>core</component>
          <version>2.6.0</version>
          <rep_platform>All</rep_platform>
          <op_sys>all</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P4</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>1523</dependson>
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Sven Gothel">sgothel</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          
          
          <cf_type>FEATURE</cf_type>
          <cf_scm_refs>gluegen 24e6a89e203f61dfbbdea7425a920b53595881f5
jocl 6d9649249b40e1ac880288bbad144649170092df</cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>7273</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2025-08-30 11:54:40 +0200</bug_when>
    <thetext>WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
WARNING: sun.misc.Unsafe::objectFieldOffset has been called by com.jogamp.common.util.UnsafeUtil$1 (file:/usr/local/projects/JogAmp/gluegen/build-macosx/gluegen-rt.jar)
WARNING: Please consider reporting this to the maintainers of class com.jogamp.common.util.UnsafeUtil$1
WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release

+++

Usage of this field was introduced in commit 303a6701c2b643d5579a5b88a101a53ccba9f90c
for Bug 1523.

This also implies removing `addressFieldOffset` 
and hence `getDirectBufferAddress` method,
as it uses the `objectFieldOffset` method to fetch the field.

Users shall simply use `Buffers.getDirectBufferAddress(niobuffer);`</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7274</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2025-08-30 11:58:51 +0200</bug_when>
    <thetext>resolved as described</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>