If the package does not actually exist, what is the replacement? Can 
someone point me towards a workaround?
Here is the bug at the root of my question:

        String date_s = "Fri Mar 31 10:02:51 +0000 2017"
        SimpleDateFormat formatter = new SimpleDateFormat("EEE MMM dd 
hh:mm:ss zzzzz yyyy");
        Date date = null;
        try {
             date = formatter.parse(date_s);
                  } catch (ParseException ex) {
             Log.p(ex.toString());
        }

This code compiles and run on some machines but not on others: it gives a 
"date cannot be parsed" error, and it seems that using

SimpleDateFormat formatter = new SimpleDateFormat("EEE MMM dd hh:mm:ss 
zzzzz yyyy", Locale.ENGLISH)

Would solve this issue.

On Wednesday, May 3, 2017 at 2:28:11 PM UTC+9, [email protected] wrote:
>
> Hi, 
>
> I am having a bug when compiling my project on some platforms but not 
> others.
> I figured out that I need to use the java.util.Locale class to fix my 
> issue. It seems to exist in codename one: 
>
>
> https://github.com/codenameone/CodenameOne/blob/master/vm/JavaAPI/src/java/util/Locale.java
>
> But when I try to import and use it I get a not found error:
>
>  error: cannot find symbol
> import java.util.Locale;
>   symbol:   class Locale
>   location: package java.util
>
> Any idea what is going on? Thanks for your help
>
> If you are experiencing an issue please mention the full platform your 
> issue applies to:
> IDE: NetBeans
> Mac and windows
> Simulator 
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/623019f1-5a35-465f-846f-da2816abaa73%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to