public class User
{
private final String _first_name;
private final String _last_name;
private final String _org_ID;
private final TimeZone _time_zone;
private final InternetAddress _email;
private final Date _last_login;
private final Date _creation_date;
public User( final String org_ID,
final String username,
final String first_name,
final String last_name,
final List<String> roles,
final TimeZone time_zone,
final InternetAddress email,
final Date last_login,
final Date creation_date )
{
this( null, org_ID, username, first_name, last_name, roles, time_zone );
this._email = email;
this._last_login = last_login;
this._creation_date = creation_date;
}
The compiler gives the the following error for the 3 variable assignments respectively: "variable _email might already have been assigned"
Is the compiler unable to tell the variables are not set in the call to the first ctor? What am I missing here?