For example, with the following application:
Code: Select all
public class Test {
Integer my_int;
public static void main( String args[] ) throws Exception {
Test test = new Test();
test.my_int = new Integer( 3 );
Thread.sleep(10000000); // allow time for YJP memory snapshot
}
}
Code: Select all
<reachable-objects>
<from>
<objects class="Test" />
</from>
<object-filter>
<objects class="*" />
</object-filter>
<field-filter>
<class name="Test">
<allowed field="my_int" />
</class>
</field-filter>
</reachable-objects>
However, the resulting set contains 0 objects of type java.lang.Integer.
Basically, the <reachable-objects> tag should be simplified, YJP should implement it correctly, and the documentation should be changed to accurately describe what it does.
[/code]