Integrated: 8360022: ClassRefDupInConstantPoolTest.java fails when running in repeat

Chen Liang liach at openjdk.org
Thu Jul 3 20:51:43 UTC 2025


On Wed, 2 Jul 2025 21:36:07 GMT, Chen Liang <liach at openjdk.org> wrote:

> The javac test `ClassRefDupInConstantPoolTest.java` has an incorrect clean directive: when its subsidary Duplicates class is cleaned, the main class is not, and jtreg eagerly reexecutes the main class and then the test fails by not able to find the nested class.
> 
> This problem is evident when running from intellij idea. It can also be reproduced consistently by:
> 
> make test TEST=langtools/tools/javac/jvm/ClassRefDupInConstantPoolTest.java JTREG=REPEAT_COUNT=2
> 
> 
> Testing: that make test line above now passes.

This pull request has now been integrated.

Changeset: 566279af
Author:    Chen Liang <liach at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/566279af49a7cf47e6030222e989417855caf1a9
Stats:     2 lines in 1 file changed: 0 ins; 0 del; 2 mod

8360022: ClassRefDupInConstantPoolTest.java fails when running in repeat

Reviewed-by: vromero

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

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


More information about the compiler-dev mailing list