Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Scala 2.10.0-M7, Scala 2.10.0
    • Component/s: None
    • Labels:
      None

      Description

      Currently only @throws(classOf[Exception]) is supported.

      @throws[Exception] improves on the code before:

      • more concise and readable
      • source compatible (didn't check it yet)
      • actually enforces that we are throwing a Throwable, and not a String

      Care is taken that the addition doesn't break anything. Because the serialization stays the same, it won't even change anything on the binary compat front.

      See https://groups.google.com/d/msg/scala-internals/EyE9DJ0EbUY/pkZ9qkVP72IJ for the discussion.

        Activity

        Show
        Simon Ochsenreither added a comment - Merged in https://github.com/scala/scala/commit/89b88720bc28b347f260f078db388d7df5a111b2
        Show
        Adriaan Moors added a comment - https://github.com/scala/scala/pull/1347

          People

          • Assignee:
            Simon Ochsenreither
            Reporter:
            Simon Ochsenreither
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development