Integrated: JDK-8309568 javac crashes attempting to -Xprint on a class file of an unnamed class

Jim Laskey jlaskey at openjdk.org
Wed Jun 7 11:37:03 UTC 2023


On Tue, 6 Jun 2023 22:14:57 GMT, Jim Laskey <jlaskey at openjdk.org> wrote:

> Test development for [JDK-8309503](https://bugs.openjdk.org/browse/JDK-8309503) found that javac crashed attempting to -Xprint on a class file of an unnamed class. The test for ClassReader detecting of unnamed class was forcing completion of the owner class. The new code uses a flags only test.
> 
> Related test is with https://bugs.openjdk.org/browse/JDK-8309503 .

This pull request has now been integrated.

Changeset: a6726b66
Author:    Jim Laskey <jlaskey at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/a6726b66dbb3ffa7b2245bb9c27c4bc87148f39c
Stats:     4 lines in 1 file changed: 3 ins; 0 del; 1 mod

8309568: javac crashes attempting to -Xprint on a class file of an unnamed class

Reviewed-by: darcy, jlahoda

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

PR: https://git.openjdk.org/jdk/pull/14344


More information about the compiler-dev mailing list