eclipse-serializer / serializer

Serializer project
Eclipse Public License 2.0
64 stars 6 forks source link

Improve behavior if PersistenceTypeDictionary.ptd is missing #77

Closed hg-ms closed 11 months ago

hg-ms commented 12 months ago

Trying to load an existing storage with a missing PersistenceTypeDictionary.ptd causes an unclear exception. Maybe the exception could be improved or the storage initialization could handle the case that storage files already exists but the PersistenceTypeDictionary is missing.

hg-ms commented 12 months ago

The TypeHandlerManager gets initialized before the storage can check for missing files. In case of no type-dictionary file the TypeHandlerManager creates a new default type dictionary. It is not possible to distinguish between a new storage starting the first time or starting an existing storage with a missing type-dictionary file. As improvement an info log message could give a hint that the TypeHandlerManager uses a newly created type-dictionary at startup.