Bug 38143

Summary: this = null; should raise compile time error
Product: [Eclipse Project] JDT Reporter: Ilja Preuss <preuss>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: VERIFIED FIXED QA Contact:
Severity: major    
Priority: P3    
Version: 2.1   
Target Milestone: 3.0 M1   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Ilja Preuss CLA 2003-05-27 06:23:53 EDT
The following compiles in Eclipse, but raises a compile time error using the 
Sun compiler:

public class Foo {
  public void foo() {
    this = null;
  }
}
Comment 1 Philipe Mulet CLA 2003-05-27 06:52:09 EDT
Fixed, will now report: "The left-hand side of an assignment must be a variable"
Comment 2 Philipe Mulet CLA 2003-05-27 06:52:28 EDT
Fixed, regression test added.
Comment 3 David Audel CLA 2003-06-05 09:36:42 EDT
Verified.