Re: Compiler says: "Object is not a declared class or interface"
Arjan Boeijink <[email protected]>
| Newsgroups | gmane.comp.lang.nice.general |
|---|---|
| Message-ID | <[email protected]> |
>Hello to everyone,
>i am trying to implement a ListCellRenderer in Nice, i make use of
>Nice-Swing.
>Well, i come across this compiler error:
>
>"Object is not a declared class or interface"
>
>I wrote the following:
>getListCellRendererComponent(
> DicingEventListCellRenderer r,
> JList list,
> Object value, // line 323
> int index,
> boolean isSelected,
> boolean hasFocus)
>{
> ...
>}
>
>[nicec] net.sf.fastrix: parsing
>[nicec]
>[nicec]
>H:\nFasTriX\build\.\..\src\net\sf\fastrix\dicing\DicingModuleGUI.nice:
>line 323, column 9:
>[nicec] Object is not a declared class or interface
>
>BUILD FAILED
>
>i made a small test with creating objects and passing objects to functions,
>everything's fine and works.
>
>I can't figure out what's missing. So: any ideas what's wrong?
>Btw, if i comment out the method, compilation succeeds and at runtime, an
>AbstractMethodError is thrown... not Niceish...
This is a bug in version 0.9.5. Could you try the development version: http://nice.sourceforge.net/cgi-bin/twiki/view/Dev/DevelopmentVersion
It should work with the dev version.
-- Arjan
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn