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

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 1.14, Minecraft 1.14.2
    • Fix Version/s: 1.15 Pre-release 5
    • Labels:
      None
    • Confirmation Status:
      Unconfirmed
    • Category:
      (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

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

                Dates

                Created:
                Updated:
                Resolved: