8370687: Improve before constructor has been called error message

Reviewed-by: vromero
This commit is contained in:
Chen Liang 2025-10-28 17:58:42 +00:00
parent 86f60f6081
commit 20e55fafb3

View File

@ -397,11 +397,11 @@ compiler.err.cant.inherit.from.final=\
# 0: symbol or name
compiler.err.cant.ref.before.ctor.called=\
cannot reference {0} before supertype constructor has been called
reference to {0} may only appear after an explicit constructor invocation
# 0: symbol or name
compiler.err.cant.assign.initialized.before.ctor.called=\
cannot assign initialized field ''{0}'' before supertype constructor has been called
assignment to initialized field ''{0}'' may only appear after an explicit constructor invocation
compiler.err.cant.select.static.class.from.param.type=\
cannot select a static class from a parameterized type