-
jdi popframes method
Hi all
We're implementing a debugger extension that uses the JDI popframes method to pop the most recent method's stack frame of the stack.
The popframes blurb in the JDI specification gives an example
http://java.sun.com/j2se/1.5.0/docs/...jdi.StackFrame)
where it states that any changes made the integer argument passed into the method will not be restored if the method's stack frame is popped. I understand that. What I DON'T understand, is why this is.
If the method argument "int x" is stored in the leaf method's stack frame, and that stack frame is popped with the popframes method, then surely this method argument would also be popped off the stack too, and original value stored in the caller method would be passed back in when the method is re-invoked? I mean, the int is a primitive, and so is passed-by-value into the method.
Any explanation would be hugely appreciated.
Regards
caid
Similar Threads
-
Replies: 5
Last Post: 05-20-2002, 12:35 PM
-
By Jason West in forum VB Classic
Replies: 1
Last Post: 03-28-2002, 08:11 PM
-
By Alan Shiers in forum Java
Replies: 0
Last Post: 03-15-2002, 12:51 PM
-
Replies: 3
Last Post: 04-13-2001, 09:13 PM
-
By Jordi in forum VB Classic
Replies: 1
Last Post: 09-10-2000, 10:10 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks