Integrated: 8255968: Confusing error message for inaccessible constructor

Guoxiong Li github.com+13688759+lgxbslgx at openjdk.java.net
Tue Dec 1 21:08:57 UTC 2020


On Mon, 23 Nov 2020 15:22:26 GMT, Guoxiong Li <github.com+13688759+lgxbslgx at openjdk.org> wrote:

> 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.

This pull request has now been integrated.

Changeset: 29d90b95
Author:    Guoxiong Li <lgxbslgx at gmail.com>
Committer: Maurizio Cimadamore <mcimadamore at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/29d90b95
Stats:     715 lines in 31 files changed: 712 ins; 0 del; 3 mod

8255968: Confusing error message for inaccessible constructor

Reviewed-by: mcimadamore

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

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


More information about the compiler-dev mailing list