Wednesday, March 18, 2015

Re: Set up GWT 2.7 throw "Version is not supported, must be 2.0.0 or later " in eclipse juno (version=4.2.0)


Hi,


NoW, I am facing issue in enum class. A class is `implements IsSerializable,Serializable`.

A method, 
public static RefItemType valueOf(Class<RefItemType> enumType, String value)

Error:
Name clash: The method valueOf(Class<RefItemType>, String) of type RefItemType has 
the same erasure as valueOf(Class<T>, String) of type Enum<E> but does not hide it

It seems gwt upgrade issue.

is it related to gwt upgrade/ jdk upgrade issue? How can I resolve it?

Thanks,
Bhumika

On Thursday, 19 March 2015 12:24:37 UTC+5:30, Bhumika Thaker wrote:

Thank you,

The gwt version problem has resolved. I have added steps that may be help to other.
I have upgraded successfully from gwt 2.5 to gwt 2.7.

I have follow below steps :

1. first upgrade plugin

2. Need to upgrade java version 1.7. otherwise it does not show gwt icon.

I am facing issue in enum class at line..
public static RefItemType valueOf(Class<RefItemType> enumType, String value)

Error:
Name clash: The method valueOf(Class<RefItemType>, String) of type RefItemType has 
the same erasure as valueOf(Class<T>, String) of type Enum<E> but does not hide it

It may related to jdk 1.7. I am looking into this issue. is any one know let me know.

Thanks,
Bhumika

On Wednesday, 18 March 2015 15:00:43 UTC+5:30, Jens wrote:

Nope. I have download gwt 2.7 sdk and setup with my project.
I have already gwt plugin installed in eclipse as till now I am working with gwt 2.5.
When I have setup  gwt 2.7, it throw this error.
Can you tell me what is problem here?

The Google plugin for Eclipse reads the GWT version from a class file in the GWT SDK via reflection. If that class file has changed between 2.5 and 2.7 then the plugin might not be able to read the version anymore and throws the above error. Thats why I said you should update your plugin and possibly Eclipse to latest version because it has updated code for version detection.

I use: Google Plugin for Eclipse 4.4, version 3.8.0.v201410302155-rel-r44 and I can import GWT 2.7 SDK without issues.

-- J.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment