Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-151173

Stream used to read options.txt file never closed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • 1.15 Pre-release 5
    • Minecraft 1.14, Minecraft 1.14.2
    • None
    • Unconfirmed
    • (Unassigned)

    Description

      See also MC-117449.

      GameSettings.loadOptions() does not close the FileInputStream used to read the options.txt file.

      It should be handled more similarly to saveOptions() which both properly specifies UTF-8 and also ensures the file stream is closed afterwards.

      Attachments

        Issue Links

          Activity

            People

              boq [Mojang] Bartosz Bok
              quadraxis Ben Staddon
              Votes:
              4 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: