RFR: 8255968: Confusing error message for inaccessible constructor

Guoxiong Li github.com+13688759+lgxbslgx at openjdk.java.net
Mon Nov 23 15:28:20 UTC 2020


Hi all,

When using inaccessible constructor, compiler would output some confusing error message occasionally. These confusing error message is related to the constructor order. See [JDK-8255968](https://bugs.openjdk.java.net/browse/JDK-8255968) for more information.
This patch solves this bug, regardless of the construction order, compiler can always output expected message.
Thank you for taking the time to review.

Best Regards.

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

Commit messages:
 - 8255968: Confusing error message for inaccessible constructor

Changes: https://git.openjdk.java.net/jdk/pull/1389/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=1389&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8255968
  Stats: 202 lines in 12 files changed: 201 ins; 0 del; 1 mod
  Patch: https://git.openjdk.java.net/jdk/pull/1389.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/1389/head:pull/1389

PR: https://git.openjdk.java.net/jdk/pull/1389


More information about the compiler-dev mailing list