Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.11.1
Description
We use a custom SpecificDatumReader which overrides the string creation logic. It looks like this:
class CustomSpecificDatumReader<T> extends SpecificDatumReader<T> { @Override protected Object newInstanceFromString(Class c, String s) { // custom logic } }
With this commit, the newInstanceFromString() method is no longer called. Instead, strings are created with the hard-coded logic within GenericDatumReader.ReaderCache.
It would be appreciated if you made it possible to override the string creation logic used by GenericDatumReader.ReaderCache. Preferably make use of the newInstanceFromString() method again to maintain backward compatibility.