RFR: 8360022: ClassRefDupInConstantPoolTest.java fails when running in repeat
Vicente Romero
vromero at openjdk.org
Wed Jul 2 21:51:42 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.
looks good, please consider placing the `@clean` directive after the `@run` one
-------------
Marked as reviewed by vromero (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/26106#pullrequestreview-2980733808
More information about the compiler-dev
mailing list