Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 120687 - Invalid stack frame when there is error in logical structure.
Summary: Invalid stack frame when there is error in logical structure.
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.4 M6   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-13 14:51 EST by Samantha Chan CLA
Modified: 2008-03-13 23:17 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Samantha Chan CLA 2005-12-13 14:51:15 EST
1.  Define logcial structure for MyClass in this testcase.  The logical structure is defined as follows where error is the var name to show in the logical structure:

error = this.showMe = null;
return showMe.length();

2.  Stop at the for loop of the testcase, and show logical structure
3.  Expand variable cls

An error message shows up briefly.  The details pane keeps flashinng.  Looks like the details pane is updated repeated.  Eventually, I got an "Invalid stack frame" error in Variables View.

Testcase:

public class TestErrorLogicalStructure {

	public class MyClass 
	{
		String showMe = "showUs";
		String hideMe = "hidebase";
		public MyClass()
		{
			System.out.println("hello my class");
		}
		public String getShowMe()
		{
			return showMe;
		}
	}
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		TestErrorLogicalStructure x = new TestErrorLogicalStructure();
		MyClass cls = x.new MyClass();

		for (int i=0; i<10; i++)
			System.out.println("hello");

	}

}
Comment 1 Darin Wright CLA 2005-12-14 13:04:21 EST
The problem is not the error in the logical structure. The problem is that the structure modifies the value of the object for which the structure is being computed. This causes a CHANGE event to be fire for the variable, which updates the variable, which causes the structure to be computed again, which...
Comment 2 Darin Wright CLA 2006-04-04 17:08:47 EDT

*** This bug has been marked as a duplicate of 119025 ***
Comment 3 Darin Wright CLA 2006-04-04 17:09:38 EDT
Marked wrong bug as dup.
Comment 4 Darin Wright CLA 2006-04-17 15:36:04 EDT
Deferred
Comment 5 Darin Wright CLA 2008-03-13 23:17:07 EDT
Re-opening. Works for me in 3.4
Comment 6 Darin Wright CLA 2008-03-13 23:17:35 EDT
Works for me in 3.4 M6. Not sure when this was fixed.