Updated YamlDatabaseHandler

Added (String) case to the second reference of new PropertyDescriptor. https://bugs.java.com/bugdatabase/view_bug.do?bug_id=8212636
This commit is contained in:
tastybento 2019-08-05 13:33:56 -07:00 committed by GitHub
parent d4bbc423bf
commit e5986d7a72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -344,7 +344,7 @@ public class YamlDatabaseHandler<T> extends AbstractDatabaseHandler<T> {
continue;
}
// Get the property descriptor for this field
PropertyDescriptor propertyDescriptor = new PropertyDescriptor(field.getName(), dataObject);
PropertyDescriptor propertyDescriptor = new PropertyDescriptor((String)field.getName(), dataObject);
// Get the read method
Method method = propertyDescriptor.getReadMethod();
// Invoke the read method to get the value. We have no idea what type of value it is.