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

Finder framework should suggest places for using private interface methods in lieu of private nested classes

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 9
    • Fix Version/s: tbd_minor
    • Component/s: tools
    • Labels:
      None
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      With the release of https://bugs.openjdk.java.net/browse/JDK-8071453, JDK's own code
      base could begin taking advantage of the new capability to use private methods in interfaces.
      In the absence of such capability till date, programmers have had to resort to awkward and
      clumsy workarounds such as having to create a private nested class to park such methods.

      This ticket is to request an enhancement to the finder framework in javac to issue diagnostics
      indicating places where such private nested class usage could be replaced with the more direct
      private interface methods approach.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated: