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

[local-methods] Javac may invoke LambdaToMethod needlessly

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: repo-amber
    • Fix Version/s: repo-amber
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              sadayapalam Srikanth Adayapalam
              Reporter:
              sadayapalam Srikanth Adayapalam
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: