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

missing symbol error not issued for annotations

    Details

      Description

      class AnnotNotFound {
        def foo(a: Any) = ()
      
        foo {
          @alsdfasjdflkasjdf
          def foo = 0
          foo
        }
      }
      

      Regressed in 2.10.0-M2, more specifically in https://github.com/scala/scala/commit/c800d1

        Issue Links

          Activity

          Hide
          Hubert Plociniczak added a comment -

          I asked many times if some good soul could work on tests for annotations as error reporting for them is absolutely uncovered.
          Thanks for finding that one Jason.

          Show
          Hubert Plociniczak added a comment - I asked many times if some good soul could work on tests for annotations as error reporting for them is absolutely uncovered. Thanks for finding that one Jason.
          Hide
          Jason Zaugg added a comment -

          Actually, Iulian gets credit for finding this one.

          Show
          Jason Zaugg added a comment - Actually, Iulian gets credit for finding this one.
          Show
          Hubert Plociniczak added a comment - https://github.com/scala/scala/pull/1531
          Hide
          Adriaan Moors added a comment -

          unless this is a bad regression without a workaround, this will have to wait until 2.10.1

          this is why testing is important and should be done much earlier in the development cycle

          i'm sure there are more errors we don't catch, so let's make a push in the beginning of the 2.10.1 cycle to catch more of these

          Show
          Adriaan Moors added a comment - unless this is a bad regression without a workaround, this will have to wait until 2.10.1 this is why testing is important and should be done much earlier in the development cycle i'm sure there are more errors we don't catch, so let's make a push in the beginning of the 2.10.1 cycle to catch more of these
          Hide
          Hubert Plociniczak added a comment -

          1) it's a regression
          2) user compiles this and gets a classfile even though there was an error.

          I would assume that this classifies as a blocker.

          Show
          Hubert Plociniczak added a comment - 1) it's a regression 2) user compiles this and gets a classfile even though there was an error. I would assume that this classifies as a blocker.
          Hide
          Jason Zaugg added a comment -
          Show
          Jason Zaugg added a comment - Resubmitted to 2.10.x as https://github.com/scala/scala/pull/1691

            People

            • Assignee:
              Hubert Plociniczak
              Reporter:
              Jason Zaugg
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development