Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-11192

Use ‘java.nio.file’ API instead of ‘java.io’ when manipulating files

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: Trunk
    • Fix Version/s: Upcoming Branch
    • Component/s: framework
    • Labels:
      None

      Description

      Since Java 1.7 the java.nio.file package provides a more modern way to manipulate the filesystem than java.io. For example the presence of a Path class allows more typesafe manipulation of file and directory names than using plain strings.

      Currently OFBiz uses java.io exclusively but it would improve safety, maintainability and readability to move to the new java.nio.file API instead.

      Some documentation regarding how to migrate to new API is available:

        Attachments

        Issue Links

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mthl Mathieu Lirzin (Inactive)

              Dates

              • Created:
                Updated:

                Issue deployment