diff --git a/cdn-kt/pom.xml b/cdn-kt/pom.xml
index a217bb1..4cb0ab1 100644
--- a/cdn-kt/pom.xml
+++ b/cdn-kt/pom.xml
@@ -31,6 +31,7 @@
${java.version}
${java.version}
+ UTF-8
diff --git a/cdn/src/main/java/net/dzikoysk/cdn/CdnDeserializer.java b/cdn/src/main/java/net/dzikoysk/cdn/CdnDeserializer.java
index 8b441e0..7935adf 100644
--- a/cdn/src/main/java/net/dzikoysk/cdn/CdnDeserializer.java
+++ b/cdn/src/main/java/net/dzikoysk/cdn/CdnDeserializer.java
@@ -47,7 +47,7 @@ public T deserialize(Class scheme, Section content) throws Exception {
}
private Object deserialize(Object instance, Section root) throws Exception {
- for (Field field : instance.getClass().getDeclaredFields()) {
+ for (Field field : instance.getClass().getFields()) {
if (CdnUtils.isIgnored(field)) {
continue;
}
diff --git a/cdn/src/main/java/net/dzikoysk/cdn/CdnSerializer.java b/cdn/src/main/java/net/dzikoysk/cdn/CdnSerializer.java
index 861559c..9c4c710 100644
--- a/cdn/src/main/java/net/dzikoysk/cdn/CdnSerializer.java
+++ b/cdn/src/main/java/net/dzikoysk/cdn/CdnSerializer.java
@@ -50,7 +50,7 @@ public Configuration serialize(Object entity) {
public Section serialize(Section root, Object entity) throws Exception {
Class> scheme = entity.getClass();
- for (Field field : scheme.getDeclaredFields()) {
+ for (Field field : scheme.getFields()) {
if (CdnUtils.isIgnored(field)) {
continue;
}
diff --git a/cdn/src/test/groovy/net/dzikoysk/cdn/TestConfiguration.groovy b/cdn/src/test/groovy/net/dzikoysk/cdn/TestConfiguration.groovy
index de848f3..d0fa085 100644
--- a/cdn/src/test/groovy/net/dzikoysk/cdn/TestConfiguration.groovy
+++ b/cdn/src/test/groovy/net/dzikoysk/cdn/TestConfiguration.groovy
@@ -30,10 +30,7 @@ class TestConfiguration {
@Description(['', '// Section description'])
public @Contextual SectionConfiguration section = new SectionConfiguration()
- static class SectionConfiguration {
-
- @Description('# Random value')
- public Integer subEntry = -1
+ static class ParentSectionConfiguration {
@Description('# List description')
public List list = [ 'record', 'record : with : semicolons' ]
@@ -47,4 +44,11 @@ class TestConfiguration {
}
+ static class SectionConfiguration extends ParentSectionConfiguration {
+
+ @Description('# Random value')
+ public Integer subEntry = -1
+
+ }
+
}
\ No newline at end of file