Scala Programming Language
  1. Scala Programming Language
  2. SI-6370

ListMap produces incorrect exception message

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: Scala 2.9.1, Scala 2.9.2
    • Fix Version/s: Scala 2.10.2-RC1
    • Component/s: Collections
    • Labels:
      None
    • Environment:

      Ubuntu Linux

      Description

      immutable.ListMap produces the wrong error message for missing keys.

      For a non-empty ListMap, the apply method throws an exception for missing keys. However, this incorrectly states "empty map" instead of "key not found: z".

      This bug doesn't apply to mutable.ListMap nor Map.

        Activity

        Hide
        Grzegorz Kossakowski added a comment -

        Changed priority to Major. It's not a blocker.

        Show
        Grzegorz Kossakowski added a comment - Changed priority to Major. It's not a blocker.
        Hide
        Rick Beton added a comment -

        'Major will do. I'd have said 'minor', but the bug submission form only gave me one choice ('blocker').

        Show
        Rick Beton added a comment - 'Major will do. I'd have said 'minor', but the bug submission form only gave me one choice ('blocker').
        Show
        Vinicius Miana Bezerra added a comment - Fix in https://github.com/scala/scala/pull/2009
        Hide
        James Iry added a comment -

        PR closed based on discussion

        Show
        James Iry added a comment - PR closed based on discussion
        Hide
        Vinicius Miana Bezerra added a comment -

        New PR with fixes based on discussion at: https://github.com/scala/scala/pull/2096

        Show
        Vinicius Miana Bezerra added a comment - New PR with fixes based on discussion at: https://github.com/scala/scala/pull/2096

          People

          • Assignee:
            Vinicius Miana Bezerra
            Reporter:
            Rick Beton
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development