Lingo
  1. Lingo
  2. LINGO-43

async send doesn't work if method signature has a throws with Runtime Exception

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.3
    • Fix Version/s: None
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Documentation states the method can't throw a checked exception for async sends to work. However when I add a Runtime exception to my method signature the aysnc sends don't work.

        Activity

        Hide
        james strachan added a comment -

        Hmm this is a tricky one. If a method has any kind of declared exceptions thrown, then strictly speaking the method can't become an async method, as the checked exception can never be thrown. Whether it derives from RuntimeException or Exception - a checked exception is a checked exception.

        I guess if there is an explicit @Async annotation to mark a method as async-capable, we could ignore checked exceptions.

        Show
        james strachan added a comment - Hmm this is a tricky one. If a method has any kind of declared exceptions thrown, then strictly speaking the method can't become an async method, as the checked exception can never be thrown. Whether it derives from RuntimeException or Exception - a checked exception is a checked exception. I guess if there is an explicit @Async annotation to mark a method as async-capable, we could ignore checked exceptions.

          People

          • Assignee:
            Unassigned
            Reporter:
            Craig Baker
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: