Skip to content

Commit ed13ef7

Browse files
authored
Merge pull request #8 from JavaWebStack/fix-private-fields
Hopefully fixed errors with private fields
2 parents e710641 + 401ea2c commit ed13ef7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/org/javawebstack/abstractdata/mapper/MapperTypeSpec.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ public List<FieldSpec> getFieldSpecs() {
9898
}
9999

100100
public Field getAdditionalField() {
101+
additionalField.setAccessible(true);
101102
return additionalField;
102103
}
103104

@@ -112,6 +113,7 @@ public static class FieldSpec {
112113
private Map<Class<? extends Annotation>, List<Annotation>> annotations = new HashMap<>();
113114

114115
public Field getField() {
116+
field.setAccessible(true);
115117
return field;
116118
}
117119

0 commit comments

Comments
 (0)