How can i put the value into the specific object ?
Hi, all
I have the problem when I try to put the value into the object. I use the method setValue of ObjectReference ( JDI ) looklike this
private ObjectReference TestObj;
private Field TestField;
private Value TestValue;
... (get value of thes field)
TestObj.setValue(TestField, TestValue);
When I run this program the Object which ObjectReference refer to has no effect response to setValue method.
Why and How I can do ?
Thank you for every answers and comments.
[530 byte] By [
taweewata] at [2007-9-29 4:01:49]

Can u provide more detailed code listing?
> Hi, all
> I have the problem when I try to put the value into
> the object. I use the method setValue of
> ObjectReference ( JDI ) looklike this
> private ObjectReference TestObj;
> private Field TestField;
> private Value TestValue;
>
> ... (get value of thes field)
>
> TestObj.setValue(TestField,
> alue(TestField, TestValue);
>
> When I run this program the Object which
> ObjectReference refer to has no effect response to
> setValue method.
> Why and How I can do ?
>
> Thank you for every answers and comments.
>
hi all,I have got same problem.
when I want set value to field of class:
I can put StringReference value into ObjectReference only.
but I can't put IntegerValue,LongValue value into ObjectRerence
I create the value by
VirtualMachine's
IntegerValue mirrorOf(int value)
LongValue mirrorOf(long value)
StringReference mirrorOf(java.lang.String value)
and I can't set value to LocalVariable of StackFrame
Thank you for every answers and comments.