United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6477850 jhat OQL Support direct value of java.lang.String type fields
JDK-6477850 : jhat OQL Support direct value of java.lang.String type fields

Details
Type:
Enhancement
Submit Date:
2006-10-03
Status:
Closed
Updated Date:
2011-03-08
Project Name:
JDK
Resolved Date:
2011-03-08
Component:
core-svc
OS:
solaris_10
Sub-Component:
tools
CPU:
sparc
Priority:
P5
Resolution:
Fixed
Affected Versions:
6
Fixed Versions:

Related Reports
Backport:

Sub Tasks

Description
A DESCRIPTION OF THE REQUEST :
Currently one has to use stringTypeValue.value.toString() javascript expression to get the string form of the value of java.lang.String typed fields.

This could be implemented by a sub class of

com.sun.tools.hat.internal.model.JavaObject

something like:

com.sun.tools.hat.internal.model.JavaStringObject

This is similar to what JDI does by having:

com.sun.jdi.StringReference

as a sub interface of:

com.sun.jdi.ObjectReference


JUSTIFICATION :
Awkward usage.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
For java.lang.String type values support direct mechanism.

I should be able to use:

select file.path
    from java.io.File file

ACTUAL -
I have to use:

select file.path.value.toString()
    from java.io.File file

which is very awkward.


---------- BEGIN SOURCE ----------
OQL Query:

select file.path.value.toString()
    from java.io.File file
---------- END SOURCE ----------

                                    

Comments
EVALUATION

Need to be fixed.
                                     
2006-11-01



Hardware and Software, Engineered to Work Together