Relative Content

Tag Archive for reflection

Good approaches when one needs to access private variables in production systems

At my company we needed access to some variable to call a method on it, this variable is hidden about 6 layers down of different libraries code and each time it is behind a private variables (that this is so is a definite oversight, the method needed provides vital information pertaining to an exception that has occurred, there is no way other than calling this method to see these details. There is an open issue about this, but it does not look like it will be getting resolved any time soon).