One of my classes imports java.text package, but when I invoke GWT
compiler it complains for being unable to resolve that package. Since
I didn't change anything in the classpath I don't know how to solve
this problem.
Any help would be greatly appreciated.
Best Regards,
Setya
Sorry, I forgot to mention that I have added GWTx library and the
compiler is supposed to find the emulated java.text, but it didn't.
Any ideas ?
Regards,
Setya
Why do you think that GWTx emulates the java.text package?
If you browse to their homepage you find
Currently emulated JRE classes include:
* java.io.Serializable
* java.beans.PropertyChangeSupport
* java.beans.PropertyChangeListener
* java.beans.PropertyChangeListenerProxy
* java.beans.PropertyChangeEvent
* java.beans.IndexedPropertyChangeEvent
* java.util.EventListenerProxy
* java.util.StringTokenizer
* java.util.logging.*
So there is no java.text.* emulation so far. :) (neither in GWT itself)
HTH
Dominik
-----Ursprüngliche Nachricht-----
Von: Google-We...@googlegroups.com [mailto:Google-We...@googlegroups.com] Im Auftrag von Setya
Gesendet: Freitag, 18. Mai 2007 13:25
An: Google Web Toolkit
Betreff: Re: GWT Compiler is unable to find JDK package
> Why do you think that GWTx emulates the java.text package?
>
> If you browse to their homepage you find
>
> Currently emulated JRE classes include:
>
> * java.io.Serializable
> * java.beans.PropertyChangeSupport
> * java.beans.PropertyChangeListener
> * java.beans.PropertyChangeListenerProxy
> * java.beans.PropertyChangeEvent
> * java.beans.IndexedPropertyChangeEvent
> * java.util.EventListenerProxy
> * java.util.StringTokenizer
> * java.util.logging.*
>
> So there is no java.text.* emulation so far. :) (neither in GWT itself)
I downloaded GWTx-20070110.jar and found java.net & java.text.
packages.
Regards,
Setya
Ok, nice hint, hadn't seen that GWTx now ships with text.* package. But not sure if the documentation is just old, or the text.* package is not supported still.
If you look into Java.gwt.xml file of GWTx it says
<module>
<inherits name="com.googlecode.gwtx.java.Beans"/>
<inherits name="com.googlecode.gwtx.java.Io"/>
<inherits name="com.googlecode.gwtx.java.Util"/>
<inherits name="com.googlecode.gwtx.java.util.Logging"/>
</module>
So there is no inherits of the text package in the main module file. Perhaps Sandy can shed some light on this, if the text folder is already supported or not.
Dominik
-----Ursprüngliche Nachricht-----
Von: Google-We...@googlegroups.com [mailto:Google-We...@googlegroups.com] Im Auftrag von Setya
Gesendet: Freitag, 18. Mai 2007 13:40
An: Google Web Toolkit
Betreff: Re: GWT Compiler is unable to find JDK package
I'm not Sandy (or Spartacus), but I did play with his GWTx code. If I
understand correctly, Sandy has ported some of the Apache Harmony
project to GWT. It looks to me like he hasn't finished porting the
java.text.* pieces. (I actually think the .jar that's available for
download might include java.text by accident 'cause there's no
java.text-related stuff in his public SVN repository.)
Anyway, GWT 1.4 is going to have its own implementation of several of
the NumberFormat classes, so, if you can wait, you should probably use
them.
I actually spent the time porting java.text.NumberFormat from the
Harmony project (actually from IBM's ICU4J project--Harmony just
delegates to it). I'm not yet convinced it was worth the two weeks of
work....
Ian
--
Tired of pop-ups, security holes, and spyware?
Try Firefox: http://www.getfirefox.com
On May 18, 7:53 pm, "Ian Petersen" <ispet...@gmail.com> wrote:
> On 5/18/07, Steiner Dominik, (QX59311)
>
> <Dominik.Stei...@partner.bmw-motorsport.com> wrote:
> > So there is no inherits of the text package in the main module file. Perhaps Sandy can
> > shed some light on this, if the text folder is already supported or not.
>
> I'm not Sandy (or Spartacus), but I did play with his GWTx code. If I
> understand correctly, Sandy has ported some of the Apache Harmony
> project to GWT. It looks to me like he hasn't finished porting the
> java.text.* pieces. (I actually think the .jar that's available for
> download might include java.text by accident 'cause there's no
> java.text-related stuff in his public SVN repository.)
>
> Anyway, GWT 1.4 is going to have its own implementation of several of
> the NumberFormat classes, so, if you can wait, you should probably use
> them.
>
> I actually spent the time porting java.text.NumberFormat from the
> Harmony project (actually from IBM's ICU4J project--Harmony just
> delegates to it). I'm not yet convinced it was worth the two weeks of
> work....
Actually all I need is GWTx's SimpleDateFormat implementation, I tried
SimpleDateFormat implementation from gwt-widgets but I found a bug (I
think) that makes me stop from using it.
Will GWT 1.4 contain SimpleDateFormat and Calendar implementation ?
When is it going to be released ?
Regards,
Setya
It will be released Real Soon Now.