Either upgrade to GWT 1.5 (which does support Java 1.5 syntax) or
downgrade to Java 1.4.


On Tue, Dec 9, 2008 at 6:59 AM, MMM <[EMAIL PROTECTED]> wrote:
>
> Hi, first of all sorry for my English and sorry if I wrote this post
> in wrong place.
> I have a problem. I wrote this code:
>        ...
>        Vector vector = new Vector();
>        HashMap map = new HashMap();
>        ...
> This code has these warnings:
>        Vector is a raw type. References to generic type Vector<E> should be
> parameterized
>        HashMap is a raw type. References to generic type HashMap<K,V> should
> be parameterized
>
> If I declare parametrized type:
>        ...
>        Vector<String> vector = new Vector<String>();
>       or Vector<Object> vector = new Vector<Object>();
>
> I get runtime errors:
>        The type Vector is not generic; it cannot be parameterized with
> arguments <String>
>        GWT does not yet support the Java 5.0 language enhancements; only 1.4
> compatible source may be used
>
> I'm using jdk 1.5 and gwt 1.4.6
> Can anybody help me to solve these warnings?
>
> Thank you
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to