Hi Vijay,

GWT emulates a subset of Java, so you can get caught out if you're
relying on Eclipse autocompletion and compilation - as that will show
you all of Java.

To see what is implemented, check out the GWT JRE documentation:
http://code.google.com/intl/sv-SE/webtoolkit/doc/1.6/RefJreEmulation.html

(You'll see under java.lang.String that getBytes() is not listed, so
it's not available in GWT).

Hope that explains/helps

//Adam

On 19 Maj, 00:21, vijay <mymail.vi...@gmail.com> wrote:
> Hi All,
> I am getting a error
>
> *getbytes*() *is undefined for the type string*
>
> the code is
>
> String primary_name = e.getPrimaryName();
> byte[] value = primary_name.getBytes();
>
> The eclipse showed me the method getbytes for autocompletion and eclipse is
> happpy with it but when i try to run the application it gives me a above
> error.
> I tried to Google it for hours but couldn't find any thing helpful. I think
> i have done some silly mistake, Please help.
>
> Regards,
> Vijay
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to