Re: ClassCastException in SuggestionsScanner
Petr Kuzel <[email protected]> Thu, 04 Dec 2003 10:10:19 +0100
| Newsgroups | gmane.comp.java.netbeans.modules.tasklist.devel |
|---|---|
| Organization | Sun Microsystems |
| Message-ID | <[email protected]> |
Tim Lebedkov wrote:
> 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) {
I'd not call it hack. DocumentSuggestionProvider downcast is necessary
here because the scanner can pull suggestions only from DocumentSuggestionProviders.
Thanks
Cc.
--
<address>
<a href="mailto:[email protected]">Petr Kuzel</a> at Sun Microsystems :
<a href="http://www.netbeans.org/">NetBeans Java IDE</a></address>