Skip to content

Commit

Permalink
Cherry pick #9340
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbumenJ committed Nov 28, 2022
1 parent 1a9eda5 commit 37689d9
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
public class DefaultHessian2FactoryInitializer extends AbstractHessian2FactoryInitializer {
@Override
protected SerializerFactory createSerializerFactory() {
return new Hessian2SerializerFactory();
Hessian2SerializerFactory hessian2SerializerFactory = new Hessian2SerializerFactory();
hessian2SerializerFactory.getClassFactory().allow(RuntimeException.class.getName());
hessian2SerializerFactory.setAllowNonSerializable(Boolean.parseBoolean(System.getProperty("dubbo.hessian.allowNonSerializable", "false")));
return hessian2SerializerFactory;
}
}

0 comments on commit 37689d9

Please sign in to comment.