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

sun.jdwp.listenerAddress agent property uses wrong encoding

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 11, 13
    • Fix Version/s: 13
    • Component/s: core-svc
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b19

      Description

      When the debugging backend listens, it sets the agent property "sun.jdwp.listenerAddress" to the current listening address.

      The code currently uses NewStringUTF() to create the Java string from the C string, which assumes it is given in UTF-8. But in reality, the address is in platform encoding, so it should be converted via JNU_NewStringPlatform().

        Attachments

          Activity

            People

            • Assignee:
              rschmelter Ralf Schmelter
              Reporter:
              rschmelter Ralf Schmelter
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: