RFR: 8340205: Native linker allows MemoryLayout consisting of only PaddingLayout [v10]
Jorn Vernee
jvernee at openjdk.org
Tue Nov 5 15:05:32 UTC 2024
On Tue, 5 Nov 2024 14:25:21 GMT, Per Minborg <pminborg at openjdk.org> wrote:
>> test/jdk/java/foreign/TestLinker.java line 188:
>>
>>> 186: assertEquals(e.getMessage(),
>>> 187: "The padding layout x2 was preceded by another padding layout x1 in [b1x1x2i4]");
>>> 188: }
>>
>> Doesn't `assertThrows` return the exception instance? (which could be used to check the message as well).
>
> Unfortunately not in testng. In JUnit 5 it does.
Testng should have this as well, since 6.9.5: https://www.javadoc.io/doc/org.testng/testng/latest/org/testng/Assert.html#expectThrows(java.lang.Class,org.testng.Assert.ThrowingRunnable) jtreg current bundles testng 7.3.0
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/21041#discussion_r1829514720
More information about the core-libs-dev
mailing list