Fixes issue 1941.  Updates the SerializationPolicyLoader such that it ignores any classes that can't be found during the loading process.  I decided to add a new method, SerializationPolicyLoader.loadFromStream(InputStream, List<ClassNotFoundException>), since removing ClassNotFoundException from the throws clause of the existing loadFromStream(InputStream) method would break existing users.  (I don't suspect that there are very many at all so maybe this decision was overly conservative.)

The new method returns a SerializationPolicy sans any class that could not be found.  If the List argument is not null, any ClassNotFoundException thrown during the loading process is added to the list. 

Patch by: mmendez
Review by: BobV

git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@1716 8db76d5a-ed1c-0410-87a9-c151d255dfc7
4 files changed