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

[local-methods] Add finder support for methods that could be turned into local methods

    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

      ATM, these would be private methods that have a single caller (but potentially multiple call sites) ignoring any recursive calls. Also ATM, any method that a method reference expression resolves/binds to or any generic method that is invoked with explicit type arguments are disqualified since if they are rendered local, there is no way to use them in method references or invoke them with explicit type witnesses. This may change in future as we define additional syntax for supporting these use cases.

        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: