Uploaded image for project: 'WildFly Arquillian'
  1. WildFly Arquillian
  2. WFARQ-214

"unsafe" warning with Java 24 due to outdated jboss-threads

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 5.1.0.Beta11
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • Low

      We use "org.wildfly.arquillian:wildfly-arquillian-container-managed" 5.1.0.Beta11 in https://github.com/arquillian/arquillian-extension-warp, and WildFly 37.0.1.Final in the test suite.

      The profile "wildfly-managed" prints this warning when running the test suite with Java 24:

      WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
      WARNING: sun.misc.Unsafe::objectFieldOffset has been called by org.jboss.threads.JBossExecutors (file:/C:/Users/USERNAME/.m2/repository/org/jboss/threads/jboss-threads/2.4.0.Final/jboss-threads-2.4.0.Final.jar)
      WARNING: Please consider reporting this to the maintainers of class org.jboss.threads.JBossExecutors
      WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
      INFO  2025-09-07T10:28:02,066 [main] jboss.threads.<clinit> (Version.java:52) - JBoss Threads version 2.4.0.Final

       

      Where does this rather outdated jboss-threads version come from (released in 2020)? Maven reports this dependency tree (full output attached):

       

      [INFO] +- org.wildfly.arquillian:wildfly-arquillian-container-managed:jar:5.1.0.Beta11:test
      [INFO] |  +- org.wildfly.arquillian:wildfly-arquillian-common:jar:5.1.0.Beta11:test
      ...
      [INFO] |  |  +- org.wildfly.core:wildfly-controller-client:jar:27.0.1.Final:test
      [INFO] |  |  |  +- org.wildfly.core:wildfly-protocol:jar:27.0.1.Final:test
      [INFO] |  |  |  |  +- org.jboss.modules:jboss-modules:jar:2.1.6.Final:test
      [INFO] |  |  |  |  +- org.jboss.remoting:jboss-remoting:jar:5.0.30.Final:test
      [INFO] |  |  |  |  |  \- org.wildfly.security:wildfly-elytron-sasl-auth-util:jar:2.5.0.Final:test
      ...
      [INFO] |  |  |  +- org.jboss:jboss-dmr:jar:1.7.0.Final:test
      [INFO] |  |  |  +- org.jboss.threads:jboss-threads:jar:2.4.0.Final:test

       

      Maybe related to WFARQ-207 ?

        1. dependency_tree.txt
          22 kB
          Wolfgang Knauf
        2. image-2025-09-25-12-58-35-895.png
          33 kB
          N L
        3. image-2025-09-25-12-59-27-704.png
          57 kB
          N L

              jperkins-rhn James Perkins
              wolfgangknauf Wolfgang Knauf
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: