We're updating the issue view to help you get more done. 

CURRENT_ERA should be used for parsing date string in JapaneseCalendar

Description

/**

  • @draft ICU 2.4
    */
    protected int handleGetExtendedYear() {
    int year;
    // TODO reimplement this to be faster?
    if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR &&
    newerField(EXTENDED_YEAR, ERA) == EXTENDED_YEAR) {
    year = internalGet(EXTENDED_YEAR, 1);
    } else {
    // Subtract one because year starts at 1
    // year = internalGet(YEAR) + ERAS[CURRENT_ERA) *
    3|internalGet(ERA,] - 1; /* Current code */
    year = internalGet(YEAR) + ERAS[CURRENT_ERA) * 3|internalGet(ERA,] -
    1; /* Fix */
    }
    return year;
    }

Status

Assignee

Steven R. Loomis

Reporter

TracBot

Labels

Reviewer

None

Time Needed

None

Start date

None

Components

Fix versions

Priority

critical