Java: fix error message (IDEA-364189)

GitOrigin-RevId: 6ddc29ca9af9523ac8597bc00b920b872a4250b6
This commit is contained in:
Bas Leijdekkers
2025-01-11 17:53:23 +00:00
committed by intellij-monorepo-bot
parent 882c455d4d
commit 67f8acad93
4 changed files with 8 additions and 8 deletions
@@ -126,7 +126,7 @@ abstract.method.in.non.abstract.class=Abstract method in non-abstract class
missing.return.type=Invalid method declaration; return type required
constructor.call.must.be.first.statement=Call to ''{0}'' must be first statement in constructor body
constructor.call.only.allowed.in.constructor=Call to ''{0}'' only allowed in constructor body
constructor.call.must.be.top.level.statement=Call to ''{0}'' must be a top level statement in constructor body
constructor.call.must.be.top.level.statement=Call to ''{0}'' must be top-level statement in constructor body
only.one.constructor.call.allowed.in.constructor=Only one explicit constructor call allowed in constructor
direct.abstract.method.access=Abstract method ''{0}'' cannot be accessed directly
unrelated.overriding.methods.return.types=methods have unrelated return types
@@ -20,14 +20,14 @@ class b extends a {
b(String s) {
try {
<error descr="Call to 'super()' must be a top level statement in constructor body">super(2)</error>;
<error descr="Call to 'super()' must be top-level statement in constructor body">super(2)</error>;
}
finally {
}
}
b(String s, int i) {
{
<error descr="Call to 'super()' must be a top level statement in constructor body">super(2)</error>;
<error descr="Call to 'super()' must be top-level statement in constructor body">super(2)</error>;
}
}
@@ -41,7 +41,7 @@ class b extends a {
}
class Z {
Z() {
Object x = <error descr="Call to 'super()' must be a top level statement in constructor body">super()</error>;
Object x = <error descr="Call to 'super()' must be top-level statement in constructor body">super()</error>;
}
}
class O extends A.B
@@ -31,14 +31,14 @@ class B extends A {
B(String s) {
try {
<error descr="Call to 'super()' must be a top level statement in constructor body">super(2)</error>;
<error descr="Call to 'super()' must be top-level statement in constructor body">super(2)</error>;
}
finally {
}
}
B(String s, int i) {
{
<error descr="Call to 'super()' must be a top level statement in constructor body">super(2)</error>;
<error descr="Call to 'super()' must be top-level statement in constructor body">super(2)</error>;
}
}
B(boolean b, int i) {
@@ -28,14 +28,14 @@ class B extends A {
B(String s) {
try {
<error descr="Call to 'super()' must be a top level statement in constructor body">super(2)</error>;
<error descr="Call to 'super()' must be top-level statement in constructor body">super(2)</error>;
}
finally {
}
}
B(String s, int i) {
{
<error descr="Call to 'super()' must be a top level statement in constructor body">super(2)</error>;
<error descr="Call to 'super()' must be top-level statement in constructor body">super(2)</error>;
}
}
B(boolean b, int i) {