[code-reflection] RFR: Committing a Concatenation transformation to StringBuilder [v2]
Ian Graves
igraves at openjdk.org
Fri Jun 14 00:09:22 UTC 2024
On Thu, 13 Jun 2024 23:54:50 GMT, Paul Sandoz <psandoz at openjdk.org> wrote:
>> Ian Graves has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Updates and refactorings
>
> test/jdk/java/lang/reflect/code/TestStringConcatTransform.java line 125:
>
>> 123: Assert.assertEquals(transformed_model_interpreted, ssa_interpreted);
>> 124: Assert.assertEquals(ssa_interpreted, ssa_transformed_interpreted);
>> 125: Assert.assertEquals(ssa_transformed_interpreted, jvm_interpreted);
>
> Won't the asserts errors get wrapped in RuntimeException? suggest you pull 'em out of. e.g.,
>
> String jvm_interpreted;
> try {
> jvm_interpreted = method.invoke(null, args);
> } catch (...) { ... }
>
> Assert....
You're right, they should probably come out just so it's clear they're not getting caught. I believe TestNG subclasses from `Error`.
-------------
PR Review Comment: https://git.openjdk.org/babylon/pull/135#discussion_r1639062775
More information about the babylon-dev
mailing list