Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] One target for intertype declarations

Hi Eric,

aspect myAspect {
    private interface State {};
    declare parents: * && !java.lang.Object implements State;

Off-topic: Is that valid syntax not? I thought I had read that
ClassSignatures would not allow boolean combinations yet...

Well, it certainly compiles and runs fine under 1.2.1 and without the !java.lang.Object it does not compile ...

No, as I understood, for declare parents, such fields are only
generated once for an object and all its supertypes that might be
matched the same ITD. At least, that's the only sensible
implementation IMHO.

It certainly seems desirable to me. But, I don't see how it could be implemented. Anyway, I'm going to do some decompiling now and have a look at what happens with ITD's and inheritance heirarchies ...

Anyway, thanks very much for your replies --- they have been v.useful!

Cheers,

Dave

And again: You usually cannot access that field
anyway!

Hope, that helps,
Eric


- -- Eric Bodden
Chair I2 for Programming Languages and Program Analysis
RWTH Aachen University

-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0.3

iQA/AwUBQZ2gzswiFCm7RlWCEQJAFQCghHpMXOMfYd1jWuxZl1uCE/b10E0An0Sg
fcFckTYi9WfEz8gM7zPKybx2
=5Ve5
-----END PGP SIGNATURE-----


_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/aspectj-users



Back to the top