This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: libgcj merging and VMStackWalker


Tom Tromey writes:
 > This week I spent some time looking at the libgcj/Classpath merge
 > situation.  After removing all the simple merges that hadn't yet been
 > handled for some reason, I looked at VMStackWalker a little.
 > 
 > I think this merge could be done fairly simply.  In fact I think it
 > just requires adding a 'Class' argument to
 > VMStackWalker.getCallingClass and VMStackWalker.getCallingClassLoader.
 > This argument would name the immediate caller, and these methods
 > would be changed to return the class just above the argument class in
 > the stack trace.

I think this is a bug.  In the API spec, when the caller is wanted it
is the immediate caller -- the calling method, not the calling class.
We shouldn't be walking backwards until we see a different class.

See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27352.

I think this was my mistake.  :-(

Andrew.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]