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

reflectXXX should check whether symbols passed are members of the type underlying the mirror

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Scala 2.10.0-M5
    • Component/s: Reflection
    • Labels:
      None

      Description

      Currently it is possible to write something along the lines of:

      mirror.reflect(foo).reflectMethod(bar)

      where `bar` is unrelated to `foo`. Such oversight will produce cryptic errors and should be detected early.

        Activity

        Show
        Adriaan Moors added a comment - https://github.com/scala/scala/pull/929

          People

          • Assignee:
            Eugene Burmako
            Reporter:
            Eugene Burmako
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development