MINA
  1. MINA
  2. DIRMINA-493

SingleSessionIoHandlerFactory.getHandler(IoSession) should throw IOException or Exception

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0-M1
    • Component/s: Core
    • Labels:
      None

      Description

      Since the only place that this method is used is within a method that throws Exception, the method should be allowed to throw Exception or IoException. This makes life easier if the creation of the session could fail, for example creating an ObjectOutputStream which could throw IOException.

        Activity

        David M. Lloyd created issue -
        David M. Lloyd made changes -
        Field Original Value New Value
        Attachment SingleSessionIoHandler.patch [ 12371237 ]
        Trustin Lee made changes -
        Assignee Trustin Lee [ trustin ]
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Emmanuel Lecharny made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Trustin Lee
            Reporter:
            David M. Lloyd
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development