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

SimpleJavaFileObject specification would benefit from implSpec

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 23
    • 23
    • tools
    • b11

    Description

      Several of the methods of SimpleJavaFileObject are structured like:

      "This implementation always throws UnsupportedOperationException. Subclasses can change this behavior as long as the contract of $METHOD is obeyed."

      This idiom would be better captured using an implSpec tag and directed inheritance, something like:

      "{@inhertiDoc JavaFileObject}
       @implSpec his implementation always throws UnsupportedOperationException."

      Attachments

        Issue Links

          Activity

            People

              darcy Joe Darcy
              darcy Joe Darcy
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: