Bug 29638

Summary: No field initializations on Object
Product: [Eclipse Project] JDT Reporter: Philipe Mulet <philippe_mulet>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.1   
Target Milestone: 2.1 M5   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Philipe Mulet CLA 2003-01-16 10:39:26 EST
Build 2.1M4

If Object is to be defined from sources, then its field initializations are not 
generated inside constructor bodies.

e.g.
package java.lang;	
public class Object {	
  String s = "hello";
  public static void main(String[] arguments) {	
    System.out.println(new Object().s);	
  }
}

should print "hello"
Comment 1 Philipe Mulet CLA 2003-01-16 10:40:05 EST
Fixed. Offending null constructor call (legite on Object) did prevent field 
initialization generation.
Comment 2 David Audel CLA 2003-02-13 06:03:54 EST
Verified.