This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
In JDK 6, we have support for heap walking and memory leaks exploration: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5024119 and http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5089849. In order to support that new functionality in NetBeans debugger, we need to add the mirror of these new methods into JPDA debugger API.
Created attachment 40476 [details] The proposed changes of existing JPDA APIs
Created attachment 40477 [details] A new API class
Created attachment 40478 [details] A new API class
Created attachment 40479 [details] The test of Heap Walking API
Please review this API change, which is necessary for heap walking functionality. Thanks.
In addition to that pure API change, we'll need to add one simple module that contains the heap walk functionality. It will have a friend dependency on profiler and public dependency on debugger JPDA API. It will be a part of the profiler cluster. The proposed location is /cvs/debuggerjpda/profiler/heapwalk and module name org.netbeans.modules.debugger.jpda.heapwalk/1
Thanks for the review, I'll integrate the change on Thursday morning CET.
The new API is in trunk: /cvs/debuggerjpda/api/apichanges.xml,v <-- apichanges.xml new revision: 1.20; previous revision: 1.19 /cvs/debuggerjpda/api/manifest.mf,v <-- manifest.mf new revision: 1.22; previous revision: 1.21 /cvs/debuggerjpda/api/src/org/netbeans/api/debugger/jpda/Field.java,v <-- Field.java new revision: 1.7; previous revision: 1.6 RCS file: /cvs/debuggerjpda/api/src/org/netbeans/api/debugger/jpda/JPDAArrayType.java,v /cvs/debuggerjpda/api/src/org/netbeans/api/debugger/jpda/JPDAArrayType.java,v <-- JPDAArrayType.java initial revision: 1.1 /cvs/debuggerjpda/api/src/org/netbeans/api/debugger/jpda/JPDAClassType.java,v <-- JPDAClassType.java new revision: 1.2; previous revision: 1.1 /cvs/debuggerjpda/api/src/org/netbeans/api/debugger/jpda/JPDADebugger.java,v <-- JPDADebugger.java new revision: 1.23; previous revision: 1.22 /cvs/debuggerjpda/api/src/org/netbeans/api/debugger/jpda/ObjectVariable.java,v <-- ObjectVariable.java new revision: 1.9; previous revision: 1.8 RCS file: /cvs/debuggerjpda/api/src/org/netbeans/api/debugger/jpda/VariableType.java,v /cvs/debuggerjpda/api/src/org/netbeans/api/debugger/jpda/VariableType.java,v <-- VariableType.java initial revision: 1.1
The test of the new API is in trunk: RCS file: /cvs/debuggerjpda/test/unit/src/org/netbeans/api/debugger/jpda/HeapWalkingTest.java,v done Checking in unit/src/org/netbeans/api/debugger/jpda/HeapWalkingTest.java; /cvs/debuggerjpda/test/unit/src/org/netbeans/api/debugger/jpda/HeapWalkingTest.java,v <-- HeapWalkingTest.java initial revision: 1.1 done RCS file: /cvs/debuggerjpda/test/unit/src/org/netbeans/api/debugger/jpda/testapps/HeapWalkApp.java,v done Checking in unit/src/org/netbeans/api/debugger/jpda/testapps/HeapWalkApp.java; /cvs/debuggerjpda/test/unit/src/org/netbeans/api/debugger/jpda/testapps/HeapWalkApp.java,v <-- HeapWalkApp.java initial revision: 1.1 done
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.