Just to let everyone know,

I have added PrivilegedAccessor and its wrapper class PA to the test suite under

This is a convenience class that uses reflection to allow you to read / write / call private members / methods of any object.

It can be useful for setting up awkward to reach test preconditions, and avoids changing visibility of fields or methods just for test purposes.

I think of it as a last resort rather than a routine tool.


The University of Dundee is a registered Scottish Charity, No: SC015096


Email signature

University of Dundee shield logo

Mungo Carstairs
Jalview Computational Scientist

The Barton Group
Division of Computational Biology

School of Life Sciences

University of Dundee, Dundee, Scotland, UK

University of Dundee FacebookUniversity of Dundee TwitterUniversity of Dundee LinkedInUniversity of Dundee YouTubeUniversity of Dundee InstagramUniversity of Dundee Snapchat
We’re Scottish University of the Year again!
The Times / Sunday Times Good University Guide 2016 and 2017