United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-4490824 JDI: provide arguments when no debug attributes present
JDK-4490824 : JDI: provide arguments when no debug attributes present

Details
Type:
Enhancement
Submit Date:
2001-08-10
Status:
Resolved
Updated Date:
2005-06-02
Project Name:
JDK
Resolved Date:
2005-06-02
Component:
core-svc
OS:
generic
Sub-Component:
debugger
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
1.3.0
Fixed Versions:

Related Reports

Sub Tasks

Description

Name: bsC130419			Date: 08/10/2001


java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)



Request for argument LocalVariables when no debug attributes present.

Currently, the JDI specification and implementaion of
com.sun.jdi.StackFrame.visibleVariables() throws an AbsentInformationException
if there is no line number information for a method. However, it would seem
that it should be possible to return LocalVariable objects for the method
arguments in this case, as the number and types of the parameter variables is
given by the type info in the method header; the offsets of the parameter
variables is predictable and can be readily calculated from info in the method
header. Variable names may have to be invented - i.e. "arg1", etc.

It would be advantageous to display arguments & their values in a debugger even
when debug attributes are not present.
(Review ID: 129819) 
======================================================================

                                    

Comments
EVALUATION

What is suggested should be possible and would be useful.

The Description refers to line number information, local
variable information is completely separate and unrelated.
###@###.### 2001-08-12
                                     
2001-08-12
SUGGESTED FIX

See attached webrev.
###@###.### 2005-05-12 23:09:27 GMT
                                     
2005-05-12



Hardware and Software, Engineered to Work Together