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

Add javax.tools.Tool.name()

XMLWordPrintable

    • b149
    • Verified

      Although javax.tools.Tool and javax.tools.ToolProvider have been somewhat superceded by the new java.util.spi.ToolProvider, they still have a use with respect to use with ServiceLoader, but there has always been a problem with using javax.tools.Tool with ServiceLoader because there has not been a well-defined way to identify the tools that may be returned.

      Although by no means perfect, it would be good to follow the example set by java.util.spi.ToolProvider and provide a default method for the javax.tools.Tool interface,

          default String name() { return ""; }

            jjg Jonathan Gibbons
            jjg Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: