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

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

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: