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

Weaken contract of java.lang.AutoCloseable

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • P3
    • Resolution: Fixed
    • 8
    • 8
    • core-libs
    • b108
    • generic
    • generic
    • Verified

    Description

      As revealed by work on streams in Project Lambda, the "must close" nature of the java.lang.AutoCloseable contract is too strong in some cases and should be weakened a bit to better accommodate other uses.

      Attachments

        Activity

          People

            henryjen Henry Jen
            darcy Joe Darcy
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: