Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java getdeclaredfield private field

Field f = obj.getClass().getDeclaredField("stuffIWant"); //NoSuchFieldException
f.setAccessible(true);
Hashtable iWantThis = (Hashtable) f.get(obj); //IllegalAccessException
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #getdeclaredfield #private #field
ADD COMMENT
Topic
Name
6+7 =