[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [aspectj-users] covariant return type question
|
Hi,
Can you please raise this as a new separate problem? It's interesting
to note that this pure Java version of the program doesn't compile
with ajc but compiles with javac:
public class ReturnTypeTest {
private interface Test {
Object getId();
}
class StringTest implements Test {
public String getId() {
return null;
}
}
}
which tells us it is probably occurring because we haven't upgraded to
the final version of the 3.1 eclipse JDT compiler.
Andy.
On 27/07/05, Reid Hartenbower <reidh@xxxxxxxxxxxxxx> wrote:
> The aspect below won't compile ('The return type is incompatible') because
> the aspectj support for java 5 is still incomplete, correct? Are the
> current bug tickets for java 5 support (eg 72766) sufficient to cover this,
> or should I create one?
>
> public aspect ReturnTypeTest {
> private interface Test {
> Object getId();
> }
>
> class StringTest {
> public String getId() {
> return null;
> }
> }
>
> declare parents : StringTest implements Test;
> }
>
>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
>
>