Compiler says: "Object is not a declared class or interface"
"Andreas Schroeder" <[email protected]>
| Newsgroups | gmane.comp.lang.nice.general |
|---|---|
| Message-ID | <61007.213.6.234.3.1075589752.squirrel@webmail.informatik.uni-muenchen.de> |
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.
within nice-swing, i came across the following lines:
nice/ui/common/types/swing/java.nice (lines 278-280)
// interface ListCellRenderer
Component getListCellRendererComponent(ListCellRenderer, JList, Object,
int, boolean, boolean)
= native Component ListCellRenderer.getListCellRendererComponent(JList,
Object, int, boolean, boolean);
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...
Regards, Andreas
-------------------------------------------------------
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