Bug 29638 - No field initializations on Object
Summary: No field initializations on Object
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.1 M5   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-16 10:39 EST by Philipe Mulet CLA
Modified: 2003-02-13 06:03 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.