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

javap support for synthetics would be nice

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: Scala 2.11.0-M1
    • Fix Version/s: Scala 2.11.0-M2
    • Component/s: Repl / Interpreter
    • Labels:
      None

      Description

      It would be nice if I could ask the repl to javap synthetic artifacts using less than the raw name.

      It's possible to do the raw name, by javap -raw Foo to see what the raw names are, and then pasting.

      One easy shortcut is to support javap -app Test to mean show me Test$delayedInit$body.

      Maybe there are similar mnemonics for anonfuns.

        Issue Links

          Activity

          Hide
          A. P. Marki added a comment - - edited

          Also, Foo#bar filters for member bar, and -fun Foo#bar shows anonfuns pertaining to bar, while -fun Foo# shows all funs for Foo but filters for apply (since that is often the member of interest). -app Test# shows the apply of the DelayedInit, i.e., the init code proper. After a def m, javap #m shows only m.

          https://github.com/scala/scala/pull/1849
          https://github.com/scala/scala/pull/1880

          Show
          A. P. Marki added a comment - - edited Also, Foo#bar filters for member bar, and -fun Foo#bar shows anonfuns pertaining to bar, while -fun Foo# shows all funs for Foo but filters for apply (since that is often the member of interest). -app Test# shows the apply of the DelayedInit, i.e., the init code proper. After a def m, javap #m shows only m. https://github.com/scala/scala/pull/1849 https://github.com/scala/scala/pull/1880

            People

            • Assignee:
              A. P. Marki
              Reporter:
              A. P. Marki
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development