John A. Tamplin:
 

> There are a few things which are going to be very hard to support   As 
> Jens mentioned, ZoneRulesProvider needs an async API so it can fetch the 
> necessary data from a server, so we can't provide a compatible API.  We can 
> provide a GWT-specific version (under a different package), so shared code 
> can deal with ZoneRules/etc but getting them will be different in client vs 
> server code.
>

I simply removed the support for zone rules as well as for 
DateTimeFormatter[Builder], the global calendar stuff (Hijrah, Japanese, 
Minguo and ThaiBuddhist) and the custom Java serialization stuff. If 
someone wants to rewrite this for GWT please join in.
The most important uses cases for me are to be able to deal with Instant, 
LocalDate, LocalTime, LocalDateTime, OffsetDateTime, OffsetTime, OffsetDate 
and transfer it between client and server. Further ISO input and output is 
required (e.g. for HTML5 date/time widgets that produce ISO8601).
Also I (removed) the global calendar stuff for GWT. All the features I have 
removed are really hard to build with GWT and might overload the client. 
Such features should either be available natively via JS or not at all. 
IMHO this is why GWT never supported java.util.Calendar.

So my approach is a pragmatic one with focus on making things happen for 
the main features. Who really needs time-zone transformation in a 
web-client? Typically a date, time or date/time
 

>
> Have you looked at generated code size?  There are also a few places where 
> it appears to rely on overflow behavior, which isn't guaranteed in GWT as 
> an int is actually represented by a JS Number under the hood.
>
>
Not yet. I will have a look in the next future. What would be the best way. 
Write a simple entry point that prints current date and time and parses 
some example date/time strings?

However, I am an open source developer and spend all my nights for pleasure 
of development. My focus is on a project that should add value to me some 
day. To do that I am working on a web framework that is based on GWT. 
Therefore I wrote various HTML5 and other widgets I missed in GWT. For the 
new HTML5 date/time widgets I wanted to have reasonable data objects and 
these are neither String nor java.util.Date. So I found java.time and 
wanted to use this in GWT. It is working for me now. I will do some further 
support here, but do not expect me to be the man leading this to perfection 
in GWT 4.0.

Cheers
  Jörg

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors
--- 
You received this message because you are subscribed to the Google Groups "GWT 
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to