Bug 42459

Summary: DebugEvaluationTests don't run if target is 1.2
Product: [Eclipse Project] JDT Reporter: Olivier Thomann <Olivier_Thomann>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: 3.0 M4   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Olivier Thomann CLA 2003-09-03 11:50:14 EDT
When target is 1.2, the debug evaluation tests fail with a VerifyError.
java.lang.VerifyError: (class: CodeSnippet_3, method: run signature: ()V)
Incompatible type for getting or setting field
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:140)
	at
org.eclipse.jdt.core.tests.eval.target.CodeSnippetRunner.processClasses(CodeSnippetRunner.java:285)
	at
org.eclipse.jdt.core.tests.eval.target.CodeSnippetRunner$3.run(CodeSnippetRunner.java:385)

This is due to the update of the declaring class. It doesn't check the
delegateThis is any and wrongly update the declaring class for field.
Comment 1 Olivier Thomann CLA 2003-09-03 14:30:06 EDT
Fixed and released.
Comment 2 David Audel CLA 2003-10-08 07:31:01 EDT
Verified.