What do you think of this idea for a change to the JLS?

Add the ability to mark objects that will be included in any stack trace.

I.E. If a stack trace includes the following method it would include the
value of x and index.
int sum(List x) traceInclude x, index) {
  int sum = 0;
  for(int index = 0; index < x.size(); index++) {
    sum += ((Number)x.get(index)).intValue();
  }
  return sum;
}
The stack trace would have one of the following on the line for this method.
(The 2nd if index isn't defined):
x={1,2,3} index=1
x={1,2,3}

James Stauffer


---
You are currently subscribed to jdjlist as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
http://www.sys-con.com/fusetalk

Reply via email to