Women in Technology

Hear us Roar



Article:
  10 Reasons We Need Java 3.0
Subject:   get rid of public constructors
Date:   2002-08-07 01:03:15
From:   jdavi
Response to: get rid of public constructors

I agree with you in having a way for control if a constructor returns a new object or a reference to an existing one, but I would prefer an equivalent to the readResolve() in serialization or be able to assign the "this" variable to another instance inside the constructor.