mirror of https://github.com/alibaba/fastjson2.git
add JDK 25 ci
This commit is contained in:
parent
62b7730578
commit
6a443b76e7
|
|
@ -19,7 +19,7 @@ jobs:
|
|||
strategy:
|
||||
matrix:
|
||||
os: [ ubuntu-24.04, windows-latest, macos-latest ]
|
||||
java: [ 8, 11, 17, 21 ]
|
||||
java: [ 8, 11, 17, 21, 25 ]
|
||||
fail-fast: false
|
||||
max-parallel: 16
|
||||
name: Test on JDK ${{ matrix.java }} OS ${{ matrix.os }}
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ public class Issue3601 {
|
|||
game.players.addAll(Arrays.asList(new Player(1, 100), new Player(2, 200)));
|
||||
|
||||
var gameJson = JSON.toJSONString(game);
|
||||
var deserializedGame1 = JSON.parseObject(gameJson, Game.class);
|
||||
Game deserializedGame1 = JSON.parseObject(gameJson, Game.class);
|
||||
assertTrue(deserializedGame1.players.get(0).getClass() == Player.class);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue