chaokunyang commented on issue #2257: URL: https://github.com/apache/fury/issues/2257#issuecomment-2916243812
 I can't reproduce it with code: ```java @Test public void testNumberListRecord() { Fury fury = Fury.builder().withCodegen(false).build(); fury.register(NumberListRecord.class); fury.register(IntArrayList.class); byte[] bytes = fury.serialize(new NumberListRecord(1L, new ArrayList<>())); Fury fury1 = Fury.builder().withCodegen(true).build(); fury1.register(NumberListRecord.class); fury1.register(IntArrayList.class); fury1.deserialize(bytes); byte[] bytes1 = fury1.serialize(fury1.deserialize(bytes)); System.out.println(fury.deserialize(bytes1));; } @Test public void testNumberListRecord1() { for (int i = 0; i < 100; i++) { Fury fury = Fury.builder() .withAsyncCompilation(true) .build(); fury.register(NumberListRecord.class); fury.register(IntArrayList.class); byte[] bytes = fury.serialize(new NumberListRecord(1L, new ArrayList<>())); System.out.println(fury.deserialize(bytes));; // <-- ClassCastException } } static class IntArrayList extends ArrayList<Integer> {} record NumberListRecord(Number n, List<Object> list) { } ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
