[lworld] Integrated: 8368076: [lworld] tools/javac/ObjectEarlyContext/T8361481.java bogus 'before supertype constructor' error

Vicente Romero vromero at openjdk.org
Tue Sep 23 18:06:37 UTC 2025


On Tue, 23 Sep 2025 17:56:07 GMT, Vicente Romero <vromero at openjdk.org> wrote:

> fixing bug found during merges. The issue was not provoked by the merge, basically we need to make a check more general, see inlined comment

src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java line 1239:

> 1237:                 // Attribute method body.
> 1238:                 attribStat(tree.body, localEnv);
> 1239:                 if (localEnv.info.ctorPrologue) {

as this check is more general now we should be covered for future conditions set into the `env.info.ctorPrologue` field. In this case we need to check that we are not analyzing Object's constructor

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

PR Review Comment: https://git.openjdk.org/valhalla/pull/1617#discussion_r2373080053


More information about the valhalla-dev mailing list