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

com.sun.source.util.JavacTask should have a protected constructor.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 21
    • 9
    • tools
    • b15

    Description

      JavacTask is an abstract class with a default constructor.

      By itself, this is not wrong but the default constructor shows up in the API documentation as an undocumented public constructor, giving the incorrect illusion that the class can be instantiated.

      It would be better to provide a protected no-args constructor, to make it clearer that this class cannot be directly instantiated.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: