spring-framework
spring-framework copied to clipboard
Support for serializable type proxies in native images
The present check is needed to bypass any attempt for serializable type proxies in a native image environment. Serializable type proxies are a rarely used mechanism to begin with, and we haven't heard any feedback on this limitation yet.
That said, we could support serializable type proxies in a native image as well if the corresponding proxy hints are provided. We could also try proxy creation there and silently proceed with a non-serializable type reference if proxy creation fails. However, we'd really need some concrete use cases for this, otherwise it seems preferable to simply define it as a known limitation.