Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8232763

[local-methods] Javac may invoke LambdaToMethod needlessly

XMLWordPrintable

    • generic
    • generic

      Javac needlessly invoked L2M in the following case:

      public class LocalMethodsNoL2MTest {
          public void foo() {
              class Inner {
                  void goo() {
                  }
              }
          }
      }

      goo() is not a local method, but it is mistakenly deemed to be.
      This is a rather benign situation as it does not cause any issues,
      but is a waste of compile time resources.

            sadayapalam Srikanth Adayapalam (Inactive)
            sadayapalam Srikanth Adayapalam (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: