United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-4836939 JDI: Add addSourceFileFilter method to ClassPrepareRequest
JDK-4836939 : JDI: Add addSourceFileFilter method to ClassPrepareRequest

Details
Type:
Enhancement
Submit Date:
2003-03-25
Status:
Resolved
Updated Date:
2005-06-02
Project Name:
JDK
Resolved Date:
2005-06-02
Component:
core-svc
OS:
solaris_7
Sub-Component:
debugger
CPU:
sparc
Priority:
P4
Resolution:
Fixed
Affected Versions:
1.4.0
Fixed Versions:

Related Reports

Sub Tasks

Description
If an IDE user clicks on a line in a JSP and wants to set a bkpt on that
line, what is the IDE to do if the class that will contain the bkpt
has not yet been loaded?  It doesn't know the classname that will
contain the line in question.   One solution is to create a ClassPrepareRequest,
and wait for a ClassPrepareEvent for a class that has a SourceDebugExtension
that names the source file in question.  This is very slow.  It can
be made faster by using an exclude filter that excludes common packages
such as java.*, javax.*, etc.  But it would be better to have a
new filter in which the desired source file name can be specified.

                                    

Comments
SUGGESTED FIX

See attached webrev.

###@###.### 2005-05-07 06:15:45 GMT
                                     
2005-05-07
EVALUATION

Need to add a filter to class prepare request that
allows filtering by source name.
###@###.### 2005-05-07 06:15:45 GMT
                                     
2005-05-07



Hardware and Software, Engineered to Work Together