Fixed Templator Super class issue
This commit is contained in:
parent
28a777faae
commit
fdc8c8caf5
3 changed files with 15 additions and 1 deletions
|
|
@ -394,7 +394,7 @@ public class Templator {
|
|||
else {
|
||||
// Using a loop as the direct lookup throws a exception if no field was found
|
||||
// So this is probably a bit faster
|
||||
for (Field field : obj.getClass().getDeclaredFields()) { // Only look for public fields
|
||||
for (Field field : obj.getClass().getFields()) { // Only look for public fields
|
||||
if (field.getName().equals(attrib)) {
|
||||
field.setAccessible(true);
|
||||
return field.get(obj);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue