[threeten-dev] hg: threeten/threeten/jdk: Added ZoneTextPrinter

Xueming Shen xueming.shen at oracle.com
Wed Dec 12 22:21:57 PST 2012


This changeset probably breaks the environment that does not build a 
full jdk, because
the javac appears to not recognize 
sun.util.locale.provider.TimeZonezNameUtility, yet.
Probably because it's a "new" sun package, so it's not in the "cached" 
symbol table yet.

As a workaround, you can either use the "TimeZone' workaround (commented 
out in the
source code) or trick the build.xml to add line like

<pathelement location="/tmp/rt.jar" />

into the "main.path" def and then copy the latest rt.jar into /tmp. This 
should trick the javac
to compile the DateTimeFormatterBuilder.

One of the goals of this changeset is to encourage you to start to build 
a full jdk:-)

Feel free to push the TimeZone approach as the default for now. But that 
will not give you the
timezone generic name, which will come in soon:-)

Btw, it really took me A hour to figure out why my zid test failed due 
to a "FooLocation"
zid, which seems come from nowhere. We really should not test the 
provider at the same
vm.

-Sherman


On 12/12/12 10:02 PM, xueming.shen at oracle.com wrote:
> Changeset: 422eef00ffbc
> Author:    sherman
> Date:      2012-12-12 22:04 -0800
> URL:       http://hg.openjdk.java.net/threeten/threeten/jdk/rev/422eef00ffbc
>
> Added ZoneTextPrinter
>
> ! src/share/classes/javax/time/format/DateTimeFormatterBuilder.java
> + test/javax/time/test/javax/time/format/TestZoneTextPrinterParser.java
>



More information about the threeten-dev mailing list