hzzc1987 / jnaerator

Automatically exported from code.google.com/p/jnaerator
0 stars 0 forks source link

Use rococoa's ID class instead of NSObject where applicable (?) #16

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
Generating this:
{{{
@interface A
-(id)f:(id)arg;
@end
}}}
gives :
{{{
package test;
public abstract class A {
    ...
    public abstract org.rococoa.NSObject f(org.rococoa.NSObject arg);
    ...
}
}}}

What is the expected output? What do you see instead?
We'd expect the arg to be org.rococoa.ID

Original issue reported on code.google.com by olivier.chafik@gmail.com on 11 Jun 2009 at 6:49

GoogleCodeExporter commented 8 years ago

Original comment by olivier.chafik@gmail.com on 12 Jun 2009 at 12:32

GoogleCodeExporter commented 8 years ago
Fixed : http://code.google.com/p/jnaerator/source/detail?r=431

Convert id to ID instead of NSObject (except for return values, as some methods
may override parent methods returning id with a new NSObject-derived return
type...)

Original comment by olivier.chafik@gmail.com on 12 Jun 2009 at 12:38