spring-framework icon indicating copy to clipboard operation
spring-framework copied to clipboard

Support for serializable type proxies in native images

Open sbrannen opened this issue 2 years ago • 1 comments

sbrannen avatar Sep 24 '22 13:09 sbrannen

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.

jhoeller avatar Nov 02 '22 22:11 jhoeller