JTREG fails passing VM options with special characters

XMLWordPrintable

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: P4
    • None
    • Affects Version/s: jt4.1
    • Component/s: tools
    • None

      While passing the following option to othervm, JTREG get confused and fails:
      -Djava.util.logging.SimpleFormatter.format='%1$tF %1$tT %4$-7s %5$s %n'

      Attached you can find a simple Java test to reproduce the issue.

      Compile, and run from the command line as follows:
      $ java -Djava.util.logging.SimpleFormatter.format='%1$tF %1$tT %4$-7s %5$s %n' BugExample
      Output:
       013-05-06 14:11:34 SEVERE Hello world!

      Running through JTREG, using an empty TEST.ROOT yields:

      ACTION: build -- Not run. Test running...
      REASON: Named class compiled on demand
      TIME: ason: Named class compiled on demand seconds
      messages:
      command: build %1$tT
      reason: Named class compiled on demand

      TEST RESULT: Error. Can't find source file: %1$tT.java in directory-list:



      As you can see it, JTREG is trying to find the file %1$tT, which is part of the formatting string that I'm trying to pass to the VM.

       

            Assignee:
            Unassigned
            Reporter:
            Alex Schenkman (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: