myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From exabrial <>
Subject Request for commit: MYFACES-3581 patch provided... simple fix
Date Mon, 16 Jul 2012 16:10:03 GMT

Hey guys :) This is in reference to

This patch is fairly simplistic, and you should be able to verify it's
correctness by reading the linked javadoc.

What's the patch for?
The short story is that MyFacesObjectInputStream does not attempt to use the
context class loader while attempting to deserialize an object. The patch
implements the resolveProxyClass method, which in turn uses the context
class loader. See this link here to see why this patch is correct[])

Why is this patch important? 
Often times, proxies implementations of interfaces are generated at runtime
to support behavior like dependency injection. These proxies need to be
serialized into the view, if used with a ViewScoped bean. The current
implementation causes the app to grind to a halt because it cannot find the
proxy class in the normal classloader.

Thank you so much!
View this message in context:
Sent from the My Faces - Dev mailing list archive at

View raw message