RFR: 8255968: Confusing error message for inaccessible constructor [v4]

Guoxiong Li github.com+13688759+lgxbslgx at openjdk.java.net
Thu Nov 26 03:36:53 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.

Guoxiong Li has updated the pull request incrementally with one additional commit since the last revision:

  Revise test cases. Rename classes and divide the jtreg tags by unit.

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/1389/files
  - new: https://git.openjdk.java.net/jdk/pull/1389/files/98ee2f2a..dc029923

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=1389&range=03
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=1389&range=02-03

  Stats: 269 lines in 31 files changed: 113 ins; 44 del; 112 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