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

--strip-debug removes parameter names included with -parameters

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P3 P3
    • 25
    • 22
    • tools
    • None
    • windows_10

      If a Java program is compiled with the -parameter option, it maintains its method parameter names. If it is then bundled into an image with jlink using the --strip-debug option, these parameter names are removed. The help page says "Strips debug information from the output image".

      Parameter names are not only debug symbols, they are used by unmarshalling libraries (like Jackson) to be able to match the text name to the parameter name. A program can stop working with --strip-debug, even though it would seem that only debug information was removed.

      Tested with Java 22.

            Unassigned Unassigned
            nlisker Nir Lisker
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: