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

rewrite Utils::fileAsString

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • hotspot
    • None
    • b45

        Utils::fileAsString implementation has several issues:
         - using '\n' instead of platform independent EOL
         - catching wide spectre of exceptions and "ignoring" them

        and last but not least, it partially duplicates code of Utils::fileAsList method which duplicates File::readAllLines (JDK-8067173)

              tpivovarova Tatiana Pivovarova (Inactive)
              iignatyev Igor Ignatyev (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: