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 [email protected]
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