-
Bug
-
Resolution: Won't Fix
-
P3
-
7
-
generic
-
generic
This can be seen by modifying StepTest.java as shown below so that it steps thru a native call
and then calls getArgumentValues():
------- StepTest.java -------
54,55c54,55
< * @run main StepTest 2 line 2 MethodCalls
< * @run main StepTest 3 line 14 MethodCalls
---
> * @ run main StepTest 2 line 2 MethodCalls
> * @run main StepTest 6 line 14 MethodCalls
57c57
< * @run main StepTest 2 line 18 MethodCallsReflection 12
---
> * @ run main StepTest 2 line 18 MethodCallsReflection 12
59,60c59,60
< * @run main StepTest 2 min 4 MethodCalls
< * @run main StepTest 3 min 43 MethodCalls
---
> * @ run main StepTest 2 min 4 MethodCalls
> * @ run main StepTest 3 min 43 MethodCalls
62c62
< * @run main StepTest 2 line 65 ControlFlow 64
---
> * @ run main StepTest 2 line 65 ControlFlow 64
96a97
> import java.util.List;
117a119,133
> void jjprint(StepEvent evt) {
> ThreadReference tr = evt.thread();
> try {
> List<StackFrame> frames = tr.frames();
> for (StackFrame sf: frames) {
> System.out.println(" " + sf.location().method() +
> ", c I = " + sf.location().codeIndex() +
> ", line= " + sf.location().lineNumber());
> List<Value> args = sf.getArgumentValues();
> }
> } catch (Exception ee) {
> System.out.println("Exception: " + ee);
> }
> }
>
147a164
> jjprint(stepEvent);
152a170,171
> System.out.println("--------------------------------");
and then calls getArgumentValues():
------- StepTest.java -------
54,55c54,55
< * @run main StepTest 2 line 2 MethodCalls
< * @run main StepTest 3 line 14 MethodCalls
---
> * @ run main StepTest 2 line 2 MethodCalls
> * @run main StepTest 6 line 14 MethodCalls
57c57
< * @run main StepTest 2 line 18 MethodCallsReflection 12
---
> * @ run main StepTest 2 line 18 MethodCallsReflection 12
59,60c59,60
< * @run main StepTest 2 min 4 MethodCalls
< * @run main StepTest 3 min 43 MethodCalls
---
> * @ run main StepTest 2 min 4 MethodCalls
> * @ run main StepTest 3 min 43 MethodCalls
62c62
< * @run main StepTest 2 line 65 ControlFlow 64
---
> * @ run main StepTest 2 line 65 ControlFlow 64
96a97
> import java.util.List;
117a119,133
> void jjprint(StepEvent evt) {
> ThreadReference tr = evt.thread();
> try {
> List<StackFrame> frames = tr.frames();
> for (StackFrame sf: frames) {
> System.out.println(" " + sf.location().method() +
> ", c I = " + sf.location().codeIndex() +
> ", line= " + sf.location().lineNumber());
> List<Value> args = sf.getArgumentValues();
> }
> } catch (Exception ee) {
> System.out.println("Exception: " + ee);
> }
> }
>
147a164
> jjprint(stepEvent);
152a170,171
> System.out.println("--------------------------------");