Re: No method called X is compatible with these patterns
"Daniel Bonniot" <[email protected]> Thu, 1 Jan 2004 20:57:36 +0100
| Newsgroups | gmane.comp.lang.nice.general |
|---|---|
| Message-ID | <000201c4eeb0$46b8afa0$ad2b933e@YOURB45091B062> |
> getTreeCellRendererComponent is a java method: > http://tinyurl.com/3b8km > > if I change "OclComponent value" to just "value" then nicec recognizes that this > definition matches the declaration. But, I need to specialize this method on > both the types of the [renderer] and [value] parameters. Am I doing something wrong? I think the point is that value is declared with type Object in Java. I agree your code should work out of the box, and I will look into that whenI can. For the moment, I think that if you retype that method, giving it a type parameter T to replace Object, your code would work. Daniel ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt