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

sun.jdwp.listenerAddress agent property uses wrong encoding

XMLWordPrintable

    • b19

        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().

              rschmelter Ralf Schmelter
              rschmelter Ralf Schmelter
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: