[otj-users] several errors

Ralf Müller s1310965 at mail.inf.tu-dresden.de
Mon Jun 30 12:54:00 CEST 2008


Hi all,

ok then, i think a have to lift the curtain on what i did with SalesPoint & 
Co. ;)

On Saturday 28 June 2008, Stephan Herrmann wrote:
> 1. ERROR
> protected class SalesPointBinder implements SalesPoint playedBy SalesPoint
>                                             ^^^^^^^^^^
> SalesPoint cannot be resolved to a type
>
> -- Reason: SalesPoint has been imported using a base import only.
>    Thus it is not available in non-base positions.

Well, actually, SalesPoint and SalesPoint are two different types in two 
different packages. The first one obviously is an interface, but the second 
one is a class. [No comments please! This was just a snapshot during 
refactoring ;) ]

The idea behind that was to have a role class that implements a specific 
interface and is bound to a base class. The interface is required by 
some "legacy" component (outgoing interface of that component), and the base 
class is a class within another component. The team was meant to merely act 
as a "binder" (ADL-like).


> 2. ERROR
> protected class SalesPointBinder implements SalesPoint playedBy SalesPoint
>                                                                 ^^^^^^^^^^
> Unsupported feature (incomplete implementation): binding interface
> SalesPoint as base of SalesPointBinder (OTJLD 2.1.1).

This is, as mentioned above, not correct. The problem here was missing 
context-sensitive support due to AST analysis errors. Thus, i missed to fix 
the imports. :(

Anyway:

> I guess we will have to negotiate about the necessity of specifying an
> interface after "playedBy" ;-)

I actually do see cases where this would fit perfectly. Given that you have to 
refactor or even extend an existing code base w/o refactoring it, it might be 
useful to have such a mechanism instead of having to write an appropriate 
role class for _every_ base class one have to bind to.


> The NPE is fixed in SVN and I can provide you a link to the next nightly
> build, given that tests approve my patch ...

That would be great. :)


Many thanks + kind regards,
Ralf

-- 
Ralf Müller <s1310965 at mail.inf.tu-dresden.de>
ICQ: 231478836 | jabber: skyflash at jabber.ccc.de
GPG: 0xE01ED0FD -> 2462 D045 4808 CDEA 2995 6443 982A 00A4 E01E D0FD



More information about the otj-users mailing list