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

MemorySessionImpl::addOrCleanupIfFail does not rethrow exceptions

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: P3 P3
    • 19
    • 19
    • core-libs

      The helper method MemorySessionImpl::addOrCleanupIfFail should try to add a close action to the session and, if an exception occur, should call the cleanup action and propagate the exception outwards.

      The implementation currently does not propagate the exception. While this doesn't affect correctness (worst thing that can happen is that a client might obtain a memory segment which, upon subsequent access, seems closed), it would be better to fix, so that errors are reported as soon as possible to clients.

            mcimadamore Maurizio Cimadamore
            mcimadamore Maurizio Cimadamore
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: