Integrated: 8180387: com.sun.source.util.JavacTask should have a protected constructor.

Archie L. Cobbs duke at openjdk.org
Fri Mar 17 20:56:08 UTC 2023


On Tue, 7 Feb 2023 21:25:28 GMT, Archie L. Cobbs <duke at openjdk.org> wrote:

> Standard practice is for constructors in `abstract` classes to be `protected` rather than `public` because they can't be used except from subclasses.
> 
> [JDK-8180387](https://bugs.openjdk.org/browse/JDK-8180387) was filed to address a particular instance of this phenomenon in the class `com.sun.source.util.JavacTask`.

This pull request has now been integrated.

Changeset: b085ab93
Author:    Archie L. Cobbs <archie.cobbs at gmail.com>
Committer: Vicente Romero <vromero at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/b085ab9316ed7a25b4981e05210299be50eb7ccd
Stats:     1 line in 1 file changed: 0 ins; 0 del; 1 mod

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

Reviewed-by: vromero

-------------

PR: https://git.openjdk.org/jdk/pull/12462


More information about the compiler-dev mailing list