[RFR] [7u] 8202088: Japanese new era implementation

Andrew Haley aph at redhat.com
Mon Apr 15 17:47:10 UTC 2019


On 4/13/19 3:03 AM, Andrew John Hughes wrote:
> Bug: https://bugs.openjdk.java.net/browse/JDK-8202088
> Webrev: https://cr.openjdk.java.net/~andrew/openjdk7/8202088/webrev.01/
> 
> This is the backport of the Japanese new era placeholder implementation
> to OpenJDK 7u. It is significantly smaller than the versions for 8u &
> 11u, as 7u does not contain the java.time.* API and is also not subject
> to the maintenance review [0] which adds the new code point support in
> java.lang.Character.
> 
> What remains is the addition of the new era to the Japanese imperial
> calendar implementation. Although this lives in java.util, the class is
> package-private so there is no API change.
> 
> The remaining elements applied largely as is, with some whitespace
> adjustments and differing copyright notices. The new tests were altered
> to work around the lack of Calendar.Builder in OpenJDK 7.
> 
> Both new tests fail on the unpatched codebase with an
> ArrayIndexOutOfBoundsException and pass on the patched version.
> 
> The second @run line is also removed from JapaneseEraNameTest.java as
> OpenJDK 7 does not have multiple locale providers.
> 

Yes, thanks.

-- 
Andrew Haley
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671


More information about the jdk7u-dev mailing list