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 order to implement annotation of method breakpoints in Editor, we need to be able to locate individual methods in Editor, based on their names and signature.
Two new methods need to be added into org.netbeans.spi.debugger.jpda.EditorContext: int getMethodLineNumber(url, className, methodName, methodSignature) String[] getCurrentMethodDeclaration()
Created attachment 42385 [details] The textual diff of the API change.
Please review this simple API change in debugger.
'@param url the url of file the class is deined in' - looks like some typo (defined?). btw: does it mean URL of source file or classfile?
It means url of the source file. I'll correct the Javadoc, the same sentence is used in Javadoc of getFieldLineNumber(), and similar in getClassName().
Thanks for the review, I'll commit the change later today...
The API change is committed to trunk: /cvs/debuggerjpda/api/apichanges.xml,v <-- apichanges.xml new revision: 1.22; previous revision: 1.21 /cvs/debuggerjpda/api/manifest.mf,v <-- manifest.mf new revision: 1.23; previous revision: 1.22 /cvs/debuggerjpda/api/src/org/netbeans/spi/debugger/jpda/EditorContext.java,v <-- EditorContext.java new revision: 1.12; previous revision: 1.11 /cvs/debuggerjpda/projects/src/org/netbeans/modules/debugger/jpda/projects/Bundle.properties,v <-- Bundle.properties new revision: 1.3; previous revision: 1.2 /cvs/debuggerjpda/projects/src/org/netbeans/modules/debugger/jpda/projects/DebuggerAnnotation.java,v <-- DebuggerAnnotation.java new revision: 1.4; previous revision: 1.3 /cvs/debuggerjpda/projects/src/org/netbeans/modules/debugger/jpda/projects/EditorContextImpl.java,v <-- EditorContextImpl.java new revision: 1.19; previous revision: 1.18 /cvs/debuggerjpda/projects/src/org/netbeans/modules/debugger/jpda/projects/SourcePathProviderImpl.java,v <-- SourcePathProviderImpl.java new revision: 1.3; previous revision: 1.2
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.