classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug in gnu.vm.stack.StackFrame


From: C. Scott Ananian
Subject: bug in gnu.vm.stack.StackFrame
Date: Fri, 6 Sep 2002 14:59:41 -0400 (EDT)

The gnu/vm/stack/StackFrame class has the following bit of code:

 private StackFrame(Object obj, Method method, int lineNum, String filename) {
     this.caller = caller;
     ....
 }

Note that 'caller' is not an argument of the constructor.  So the first
statement of the constructor is effectively a no-op, equivalent to
  this.caller = this.caller

Oops!

I'm guessing 'StackFrame caller' should be an argument to the constructor.

Also, as the StackFrame is a linked list, I'm guessing the fact that
the gnu.vm.stack.StackTrace class uses an *array* of StackFrames
is a bug, or at least redundant.
 --scott

South Africa pending Mossad Philadelphia early warning assassinate 
President NRA arrangements Hager DNC chemical agent planning Indonesia 
                         ( http://cscott.net/ )





reply via email to

[Prev in Thread] Current Thread [Next in Thread]