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

StringQuoteUtilTest.java - testCmdLineQuoting failed due to incorrect input

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • 8
    • deploy

        StringQuoteUtilTest.java
        The method testCmdLineQuoting() failed due to space in arguments.
        The code removes quotes and executes the argument and hence treats space as the end of an argument.
        An escape character is required to replace space.

        Suggested fix:
        use "\0" instead of space (" ") in the test arguments

              vrao Vivek Rao (Inactive)
              vrao Vivek Rao (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: