Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

CustomField getType()

Marek Michalowski
6 years ago Dec 11, 2015 7:43am
Agata Vackova
6 years ago Dec 11, 2015 10:23am

Try to check all your imports for List. It's easy to accept a strange import hint from IDE ;-)

And, for me, works following getType method:

@Override
    public Class<? extends List<T>> getType() {
        //http://stackoverflow.com/questions/4829576/javac-error-inconvertible-types-with-generics
        Class clazz = List.class;
        return (Class<? extends List<T>>)clazz;
    }

 

Marek Michalowski
6 years ago Dec 14, 2015 8:22am