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

SimpleJavaFileObject specification would benefit from implSpec

XMLWordPrintable

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

      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."

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

              Created:
              Updated:
              Resolved: