Use to examines the current stack of the current thread. If the Old Method on Stack alert is displayed, the topmost call is associated with a class that was just swapped into the currently executing program, and there is more than one call on the call stack.
Perform one of the following actions:
Element | Description |
---|---|
Pop Call |
Removes the most recent call from the current call stack. The program counter is moved to the line before the instruction that made the recently removed call.
If the source code is available, the focus of the Source Editor is set to that line. When you continue program execution, the call is repeated. |
Use Old and Step Out |
Executes the original version of the call. Use this option when you need the old version of the call to perform an action that the new version might not perform.
If methods belonging to an old version of the class are on a stack in the virtual machine (VM), the VM keeps both the old and new versions of the class in memory so that the calls on the stack are not disrupted. If a class is fixed again before the older calls are removed, there might be more than two versions of the class in the VM at one time. |
Related Topics
Developing Applications with NetBeans IDE,
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |