Skip to content

Commit 465850c

Browse files
committed
fix(test): NumberFormatException for JDK-8176425
1 parent b30224f commit 465850c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

framework/src/test/java/org/tron/core/jsonrpc/JsonrpcServiceTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,8 @@ public void testGetByJsonBlockId() {
426426
try {
427427
getByJsonBlockId("0xxabc", wallet);
428428
} catch (Exception e) {
429-
Assert.assertEquals("For input string: \"xabc\"", e.getMessage());
429+
// https://bugs.openjdk.org/browse/JDK-8176425, from JDK 12, the exception message is changed
430+
Assert.assertTrue(e.getMessage().startsWith("For input string: \"xabc\""));
430431
}
431432
}
432433

0 commit comments

Comments
 (0)