[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [aspectj-users] Method/field introduction in multiple classes
|
Nevermind I just read type patterns aren't supported for members.... I guess
the interface marker + intertypes into the interface idiom would suffice
here anyway..
Something like this
interface I { }
declare parents: (A || B || C) implements I;
public void I.foo() {
// impl..
}
-----Original Message-----
From: aspectj-users-bounces@xxxxxxxxxxx
[mailto:aspectj-users-bounces@xxxxxxxxxxx] On Behalf Of neil loughran
Sent: 12 April 2008 08:26
To: aspectj-users@xxxxxxxxxxx
Subject: [aspectj-users] Method/field introduction in multiple classes
Hi,
Unless I'm mistaken, I distinctly remember the following syntax working many
years ago
public void (A || B || C).foo() {
// impl
}
Instead of
public void A.foo() {
// impl
}
public void B.foo() {
// impl
}
public void C.foo() {
// impl
}
Has the former now been deprecated?
Thanks
Neil
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users