ClassCastException in SuggestionsScanner

Tim Lebedkov <[email protected]> Wed, 03 Dec 2003 22:24:49 +0100
Newsgroups gmane.comp.java.netbeans.modules.tasklist.devel
Message-ID <[email protected]>
Hi Petr,

I added some lines in SuggestionsScanner:183 to fix a ClassCastException:

                // TODO FIXME HACK this instanceof added on 03.12.2003
                // to fix a ClassCastException
                if (provider instanceof DocumentSuggestionProvider) {
                    List l = ((DocumentSuggestionProvider) 
provider).scan(env);
                    if (l != null) {
                        // XXX ensure that scan returns a homogeneous 
list of tasks
                        manager.register(provider.getTypes()[0], l, 
null, list, true);
                    }
                }
//            }


--Tim