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.

Bug 103934

Summary: Add API for identification of methods in source code
Product: debugger Reporter: Martin Entlicher <mentlicher>
Component: JavaAssignee: Martin Entlicher <mentlicher>
Status: CLOSED FIXED    
Severity: blocker Keywords: API, API_REVIEW_FAST
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on:    
Bug Blocks: 43066, 65015    
Attachments: The textual diff of the API change.

Description Martin Entlicher 2007-05-14 18:21:08 UTC
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.
Comment 1 Martin Entlicher 2007-05-14 18:29:56 UTC
Two new methods need to be added into org.netbeans.spi.debugger.jpda.EditorContext:
 int getMethodLineNumber(url, className, methodName, methodSignature)
 String[] getCurrentMethodDeclaration()
Comment 2 Martin Entlicher 2007-05-14 18:41:48 UTC
Created attachment 42385 [details]
The textual diff of the API change.
Comment 3 Martin Entlicher 2007-05-14 18:42:39 UTC
Please review this simple API change in debugger.
Comment 4 _ rkubacki 2007-05-14 18:57:10 UTC
'@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?
Comment 5 Martin Entlicher 2007-05-14 19:24:27 UTC
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().
Comment 6 Martin Entlicher 2007-05-22 11:10:49 UTC
Thanks for the review, I'll commit the change later today...
Comment 7 Martin Entlicher 2007-05-22 15:05:46 UTC
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
Comment 8 Quality Engineering 2010-04-29 09:33:09 UTC
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.