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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 9
    • tools
    • None
    • generic
    • generic

      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.

            vromero Vicente Arturo Romero Zaldivar
            sadayapalam Srikanth Adayapalam (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: