compiles just fine with -1.6 flag, not with -1.5 flag. (if you make
your m() method public in FooImpl)

Andy

On 5 August 2010 23:50, Olle Hallin <[email protected]> wrote:
> Hi!
> Does this compile in ajc?
> public interface Foo {
>   void m();
> }
> public class FooImpl implements Foo {
> �...@override
>   void m() {
>     // do something
>   }
> }
> Last time I checked (1.5-ish) it didn't.
> IMO this is a good design pattern, since it eliminates the risk for dead
> implementation code should one remove some method from the interface.
> Regards,
> Olle Hallin
> Senior Java Developer and Architect
> Crisp AB, Stockholm, Sweden
>
> _______________________________________________
> aspectj-users mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
>
_______________________________________________
aspectj-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Reply via email to