Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8369082

java.lang.IllegalArgumentException: argument type mismatch is sometimes thrown

XMLWordPrintable

    • generic
    • generic

      ADDITIONAL SYSTEM INFORMATION :
      $ java -version
      java version "25" 2025-09-16 LTS
      Java(TM) SE Runtime Environment (build 25+37-LTS-3491)
      Java HotSpot(TM) 64-Bit Server VM (build 25+37-LTS-3491, mixed mode, sharing)
      java version "25" 2025-09-16 LTS
      Java(TM) SE Runtime Environment (build 25+37-LTS-3491)

      $ lsb_release -a
      No LSB modules are available.
      Distributor ID: Ubuntu
      Description: Ubuntu 24.04.3 LTS
      Release: 24.04
      Codename: noble


      A DESCRIPTION OF THE PROBLEM :
      More often than not, the following Exception is thrown. Not sure why but it was working in jdk-23.

      java.lang.IllegalArgumentException: argument type mismatch
              at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:108)
              at java.base/java.lang.reflect.Method.invoke(Method.java:565)


      REGRESSION : Last worked in version 23

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Ran program in jdk-25 and error was produced sometimes

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Run program in jdk-25 and expect no Exception to be thrown
      ACTUAL -
      Run program in jdk-25 and most times Exception is thrown

            adev Anupam Dev
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: