RFR: 8180387: com.sun.source.util.JavacTask should have a protected constructor.
Archie L. Cobbs
duke at openjdk.org
Tue Feb 7 21:32:23 UTC 2023
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`.
-------------
Commit messages:
- Make default constructor for abstract class JavacTask protected.
Changes: https://git.openjdk.org/jdk/pull/12462/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=12462&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8180387
Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/12462.diff
Fetch: git fetch https://git.openjdk.org/jdk pull/12462/head:pull/12462
PR: https://git.openjdk.org/jdk/pull/12462
More information about the compiler-dev
mailing list