According to the Primary Handle section in YAML specification 1.2, !mypackage.MyClass is by default the shorthand of !<!mypackage.MyClass>. Unfortunately, YamlBeans does not parse !<!mypackage.MyClass>, which can be produced by other YAML libraries like js-yaml.