Skip to content

Commit

Permalink
fix to allow access to private fields of the parent class #EA-3641
Browse files Browse the repository at this point in the history
  • Loading branch information
GordeaS authored and GordeaS committed Jan 25, 2024
1 parent 80da1cd commit c3561f9
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,9 @@ public void setIsShownBy(WebResource resource) {
}

public Object getFieldValue(Field field) throws IllegalAccessException {
if(!field.canAccess(this)) {
field.setAccessible(true);
}
return field.get(this);
}

Expand Down

0 comments on commit c3561f9

Please sign in to comment.