java.sql.Date does not have a default constructor, so the example won't compile; it must be something different.
BTW, I copied the three lines above to my client code: there is no problem with compiling and running it using java.util.Date and GWT 2.1.1. On Dec 30, 1:31 pm, Slava Lovkiy <[email protected]> wrote: > Is this error happing in old code or newly created? > Check the package name in the import of the file, there is a chance > your IDE auto-imported class Date not from java.util but from java.sql > package. > > On Dec 31, 2:17 am, bond <[email protected]> wrote: > > > > > > > > > Hi, > > with the last version of GWT (2.1.1); in the client when I'm using > > this code: > > Date date = new Date(); > > date.setHours(13); > > date.setMinutes(00); > > > throw this exception: > > > java.lang.IllegalArgumentException: null > > at java.sql.Date.setHours(Unknown Source) > > > I think that the problem is linked to the fact that now java.sql.Date > > is implemented in Gwt. > > How I can resolve the problem? > > > Thanks very much > > > Best regards -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
