From d4bbc423bfa7c8a1f62b52bff701862a8b842193 Mon Sep 17 00:00:00 2001 From: tastybento Date: Mon, 5 Aug 2019 13:31:45 -0700 Subject: [PATCH] Updated YamlDatabaseHandler Added type casting to code as a workaround to try and resolve a compile issue for Java 11. See https://bugs.java.com/bugdatabase/view_bug.do?bug_id=8212636 --- .../bentobox/bentobox/database/yaml/YamlDatabaseHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/world/bentobox/bentobox/database/yaml/YamlDatabaseHandler.java b/src/main/java/world/bentobox/bentobox/database/yaml/YamlDatabaseHandler.java index 9d1db66f4..712246cdf 100644 --- a/src/main/java/world/bentobox/bentobox/database/yaml/YamlDatabaseHandler.java +++ b/src/main/java/world/bentobox/bentobox/database/yaml/YamlDatabaseHandler.java @@ -153,7 +153,7 @@ public class YamlDatabaseHandler extends AbstractDatabaseHandler { continue; } // Get the getter and setters for this field using the JavaBeans system - PropertyDescriptor propertyDescriptor = new PropertyDescriptor(field.getName(), dataObject); + PropertyDescriptor propertyDescriptor = new PropertyDescriptor((String)field.getName(), dataObject); // Get the write method Method method = propertyDescriptor.getWriteMethod(); /*