diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index d4bbf41e..0eaa3256 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -14,7 +14,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest, macOS-latest] - java: [11, 17, 21, 23] + java: [11, 17, 21, 23, 24] steps: - uses: actions/checkout@v4 diff --git a/src/test/java/com/github/underscore/StringTest.java b/src/test/java/com/github/underscore/StringTest.java index 104c4dbd..db076884 100644 --- a/src/test/java/com/github/underscore/StringTest.java +++ b/src/test/java/com/github/underscore/StringTest.java @@ -3612,7 +3612,8 @@ void fromXmlStackoverflowObject() throws IOException { try { U.fromXmlMap(stringXml); } catch (Throwable throwable) { - assertTrue(throwable instanceof StackOverflowError); + assertTrue(throwable instanceof StackOverflowError + || throwable instanceof IllegalArgumentException); } }