nealeu opened a new issue, #3769: URL: https://github.com/apache/fory/issues/3769
### Search before asking - [x] I had searched in the [issues](https://github.com/apache/fory/issues) and found no similar issues. ### Version Fory 1.2.0, JDK 25 ### Component(s) Java ### Minimal reproduce step This might just be an unavoidable change as part of a refactor, but as our tests caught it, I thought it would be worth the team/community being aware of - perhaps add a similar test for regression capture. ```groovy def "should log error for non-Serializable classes to ensure non-Fory compat"() { given: captureLogEvents(SerializableTypeChecker.class) def fory = Fory.builder() .withLanguage(Language.JAVA) .requireClassRegistration(false) .build() def checker = SerializableTypeChecker.lenient() fory.getTypeResolver().setTypeChecker(checker) when: def bytes = fory.serialize(new AnyClass()) def result = fory.deserialize(bytes) logEventLatch.await() then: result.value == "test" logEvents.size() == 1 // Passed in 1.1.0 Now fails with 3 in Fory 1.2.0 logEvents.any { it.level.name() == 'ERROR' } cleanup: cleanupLogEvents(LoggingTypeChecker.class) } ``` ### What did you expect to see? expected type checker to only be called once. ### What did you see instead? Type checker now called 3 times ### Anything Else? _No response_ ### Are you willing to submit a PR? - [ ] I'm willing to submit a PR! -- 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]
