10x u saved me :)

On 24 נובמבר, 07:43, Jason Morris <[email protected]> wrote:
> Eclipse fills in methods based on the JDK installed, not the GWT emulated 
> JRE. GWT's implementation
> of the JRE sits in the package com.google.gwt.emul.java, not java.
>
> ben fenster wrote:
> > thanks i removed the override and it worked can you please tell me why
> >  did act like that since the eclipse filled out the implementation
> > acording to the interface and if the method is not suppored  how did
> > it got into the imlementation in the first place
>
> > On 23 נובמבר, 16:52, Jason Morris <[email protected]> wrote:
> >> Hi ben,
>
> >> If you are using a version of GWT < 2.0 this error appears because the 
> >> standard GWT List interface
> >> doesn't have the subList method. You can either remove the @Override 
> >> annotation from that method, or
> >> extend AbstractList instead of implementing List directly (generally 
> >> considered a better option
> >> anyways).
>
> >> You could also upgrade to GWT 2.0-rc, which has the subList method 
> >> included in the interface definition.
>
> >> Hope that helps.
> >> //Jason
>
> >> ben fenster wrote:
> >>> import java.util.Collection;
> >>> import java.util.Iterator;
> >>> import java.util.List;
> >>> import java.util.ListIterator;
> >>> public class bla implements List<String> {
> >>>   �...@override
> >>>    public boolean add(String e) {
> >>>            // TODO Auto-generated method stub
> >>>            return false;
> >>>    }
> >>>   �...@override
> >>>    public void add(int index, String element) {
> >>>            // TODO Auto-generated method stub
> >>>    }
> >>>   �...@override
> >>>    public boolean addAll(Collection<? extends String> c) {
> >>>            // TODO Auto-generated method stub
> >>>            return false;
> >>>    }
> >>>   �...@override
> >>>    public boolean addAll(int index, Collection<? extends String> c) {
> >>>            // TODO Auto-generated method stub
> >>>            return false;
> >>>    }
> >>>   �...@override
> >>>    public void clear() {
> >>>            // TODO Auto-generated method stub
> >>>    }
> >>>   �...@override
> >>>    public boolean contains(Object o) {
> >>>            // TODO Auto-generated method stub
> >>>            return false;
> >>>    }
> >>>   �...@override
> >>>    public boolean containsAll(Collection<?> c) {
> >>>            // TODO Auto-generated method stub
> >>>            return false;
> >>>    }
> >>>   �...@override
> >>>    public String get(int index) {
> >>>            // TODO Auto-generated method stub
> >>>            return null;
> >>>    }
> >>>   �...@override
> >>>    public int indexOf(Object o) {
> >>>            // TODO Auto-generated method stub
> >>>            return 0;
> >>>    }
> >>>   �...@override
> >>>    public boolean isEmpty() {
> >>>            // TODO Auto-generated method stub
> >>>            return false;
> >>>    }
> >>>   �...@override
> >>>    public Iterator<String> iterator() {
> >>>            // TODO Auto-generated method stub
> >>>            return null;
> >>>    }
> >>>   �...@override
> >>>    public int lastIndexOf(Object o) {
> >>>            // TODO Auto-generated method stub
> >>>            return 0;
> >>>    }
> >>>   �...@override
> >>>    public ListIterator<String> listIterator() {
> >>>            // TODO Auto-generated method stub
> >>>            return null;
> >>>    }
> >>>   �...@override
> >>>    public ListIterator<String> listIterator(int index) {
> >>>            // TODO Auto-generated method stub
> >>>            return null;
> >>>    }
> >>>   �...@override
> >>>    public boolean remove(Object o) {
> >>>            // TODO Auto-generated method stub
> >>>            return false;
> >>>    }
> >>>   �...@override
> >>>    public String remove(int index) {
> >>>            // TODO Auto-generated method stub
> >>>            return null;
> >>>    }
> >>>   �...@override
> >>>    public boolean removeAll(Collection<?> c) {
> >>>            // TODO Auto-generated method stub
> >>>            return false;
> >>>    }
> >>>   �...@override
> >>>    public boolean retainAll(Collection<?> c) {
> >>>            // TODO Auto-generated method stub
> >>>            return false;
> >>>    }
> >>>   �...@override
> >>>    public String set(int index, String element) {
> >>>            // TODO Auto-generated method stub
> >>>            return null;
> >>>    }
> >>>   �...@override
> >>>    public int size() {
> >>>            // TODO Auto-generated method stub
> >>>            return 0;
> >>>    }
> >>>   �...@override
> >>>    public List<String> subList(int fromIndex, int toIndex) {
> >>>            return null;
> >>>    }
> >>>   �...@override
> >>>    public Object[] toArray() {
> >>>            // TODO Auto-generated method stub
> >>>            return null;
> >>>    }
> >>>   �...@override
> >>>    public <T> T[] toArray(T[] a) {
> >>>            // TODO Auto-generated method stub
> >>>            return null;
> >>>    }
> >>> }
> >>>  i am did the exact same thing and got
> >>> [ERROR] Line 131: The method subList(int, int) of type bla must
> >>> override or implement a supertype method
> >>> On 23 נובמבר, 16:07, Paul MERLIN <[email protected]> wrote:
> >>>> Le lundi 23 novembre 2009 15:05:18, ben fenster a écrit :
> >>>>> im sorry but i was under some presure i have a close deadline and
> >>>>> thats pretty much the only problem idid you create an anonymous class
> >>>>> or a class that implements the list
> >>>> public class Test implements List<String> { ... }
> >>> --
> >>> 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 
> >>> athttp://groups.google.com/group/google-web-toolkit?hl=.
>
> > --
>
> > 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 
> > athttp://groups.google.com/group/google-web-toolkit?hl=.

--

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