Changshin Lee wrote:
> Hi,
>
> Currently ERROR field in Accessor is declared as a raw type. Can we have
>
> public static final Accessor<Object, Object> ERROR = new
> Accessor<Object, Object>(Object.class) {..
>
> for type safety? It also helps Eclipse compile this source code.
I think it's not actually type-safe, because Accessor<Object,Object>
means it's an accessor for a property on an Object class that returns
Object.
The ERROR needs to be used as an accessor of any object that returns
anything, so it's best to leave it as a raw type.
I noticed that Eclipse 3.1 gives a lot of false errors on many places in
the source code. (On this particular line it says this class needs to
implement abstract receive method) is this what you mean by "helps
Eclipse compile this source code"?
--
Kohsuke Kawaguchi
Sun Microsystems kohsuke.kawaguchi_at_sun.com