[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[aspectj-users] InterType: introducing serialVersionUID into @Persistable
|
Hi there!
I have slight problem with introducing
'static final long serialVersionUID = 17L' into any class
that is marked with @Persistable interface.
'final' and 'static' are the keywords here.
Error message is of course: "static inter-type field on interface not
supported".
The question is why isn't this supported, or better how to achieve
introduction of 'static final long' into a _class_ (if possible).
MyAspect.aj:
declare parents @Persistable * implements java.io.Serializable;
//static final @Persistable.serialVersionUID = 17L; <- won't work
//static final ConcretePojo.serialVersionUID = 17L; <- will work,
//but not what I need
I know it's a rare case where one needs to introduce that field, but ..
it's my case. Thanks for any feedback.
Tomasz
--
_i______'simplicity_is_the_key'__________tomasz_nazar
_ii____'i_am_concern_oriented'________________PJKM.pl
_iii__'patsystem.sf.net'___________________linux_user
_Heaven_&_Fellows,_PPP______________________prevayler