- make SM Serializer only display warning instead of throwing an Exception when the class has not been registered, internally supported classes like jME math primitives were not accepted anymore

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7267 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 14 years ago
parent 67dd48aae7
commit 1203073bd9
  1. 3
      engine/src/networking/com/jme3/network/serializing/Serializer.java

@ -293,7 +293,8 @@ public abstract class Serializer {
}
if( failOnMiss ) {
throw new IllegalArgumentException( "Class has not been registered:" + cls );
Logger.getLogger(Serializer.class.getName()).log(Level.WARNING, "Class has not been registered {0}", cls);
// throw new IllegalArgumentException( "Class has not been registered:" + cls );
}
return registerClass(cls, fieldSerializer);
}

Loading…
Cancel
Save