[local-methods] Implementation member methods need better naming style

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • repo-amber
    • Affects Version/s: repo-amber
    • Component/s: tools
    • generic
    • generic

      Given:

      public class X {

          public static void main(String args []) {
              void goo() {
              }
              void foo() {
              }
          }
      }

      Javac emits the representation methods as:

      private static void local$main$1(); and
      private static void local$main$0();

      See that the source names are lost in translation. This was OK for lambdas as they are anonymous blocks of code, but is a gratuitous loss of information that could make for better readability of javap out put (say)


            Assignee:
            Vicente Arturo Romero Zaldivar
            Reporter:
            Srikanth Adayapalam (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: