Gijs, thank you for your response. I appreciate that.
Gijs Peek napisaĆ(a):
Hi Bartlomiej,
Your code does not work for two reasons:
* A private inter-type declaration is a private field in realtion to the
aspect, not for the class(es) it is declared upon.
You mean, did I use "privileged" aspect? I did.
* Final static constant fields are not treated as such (see bug #52105,
https://bugs.eclipse.org/bugs/show_bug.cgi?id=52105). This means unfortunately
you cannot use an inter-type declaration for the declaration of a
serialVersionUID field until this bug is fixed, even if you would increase
the visibility to public.
So I cannot solve this problem. :( And what is the point to display the
warning when I cannot weave-in proper serialVersionUID?
And what do you mean by "inter-type"? English is not my native
language. I understand it as a declaration of serialVersionUID field
for a few types (classes) in one aspect. I want to add this field to
each class separately but defining
ClassName.serialVersionUID
Best regards,
--
Bartlomiej Zdanowski
Programmer
Product Research & Development Department
AutoGuard & Insurance Ltd.
Omulewska 27 street
04-128 Warsaw
Poland
phone +48 22 611 69 23
www.autoguard.pl
|