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

Formatter could use platform specific File.pathSeparator and File.separator

    Details

    • Type: Enhancement
    • Status: New
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 10
    • Fix Version/s: tbd_major
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      The java.util.Formatter has a symbol for platform specific line separator
      %n, but it would be very useful to have platform specific File.pathSeparator
      and File.separator. Then it would be easy to express file system paths

        Activity

        Hide
        jjg Jonathan Gibbons added a comment - - edited
        It might also be useful to do this on MessageFormat ...
        For example, {/} and {;} could expand to File.separator and File.pathSeparator
        Show
        jjg Jonathan Gibbons added a comment - - edited It might also be useful to do this on MessageFormat ... For example, {/} and {;} could expand to File.separator and File.pathSeparator

          People

          • Assignee:
            Unassigned
            Reporter:
            ksrini Kumar Srinivasan
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: