[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [aspectj-users] Serial Version Issue with AspectJ
- From: Andy Clement <andrew.clement@xxxxxxxxx>
- Date: Mon, 30 Jul 2012 17:22:41 -0700
- Delivered-to: firstname.lastname@example.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=bkqRGgjNZy9xIqtwcYY2LpEgtlMwla38aACH65DUySA=; b=PEQSiR849YuEyg02ROlwnpV0bUZMH9ZF7H8IbmPP2EGaaxxNSr8UU0PLKR4XxJynHU BQ2PoyP5TseIbTjphjgq5xz16kDbgqesRzjrg7BvVJB1YDJObXa8GKOqrY0D4jE9gKrA i5pdRVQkZqHnRfPaunYWjX9dLZmg1usPO7obJDFfGnM8yDgNVzJJ6t1+oAP3ntiWPyPO FcGgy+NTLtkcU0sdy9T5/pA0eqQm8saMUbRBfhNJJe0Scdx5QdaaDO43gvTOG2+xsjLg DQrjQ+g9CnqN8xYaqyO8ToOiF6v5rZnpaRxrn6l9EvsK92689/OXmYuLAGiAdyYl68+d /PeQ==
The serialversion UID for a type is based on the fields/methods within
it, weaving (particularly ITDs) can introduce new fields and methods
and so the serialversionuid changes. The option -XaddSerialVersionUID
causes types (that implement serializable) to get a fixed
serialversionuid generated into them before they are modified by
> We have certain set of classes with SerialVersionUIDs in both Client and Server Library.
So you are manually setting the serialversionuid? In that case you
don't need -XaddSerialVersionUID which is just about adding them where
they aren't specified. There is no -XaddSerialVersionUID=false, just
don't supply it. But are you saying that if you don't supply that
setting you are finding the value of your specified serialversionuid
for the class is changing after weaving? AspectJ shouldn't be
touching any user supplied serialversionuid field...
There was a bug or two in -XaddSerialVersionUID many versions ago but
I think they were also resolved in around the 1.6.4/1.6.5 timeframe.
if you can give me a small code sample that shows what you mean, I'll
dig into it.
On 30 July 2012 00:20, Jeevitha Muthusamy <mail2jeevithamk@xxxxxxxxx> wrote:
> We have certain set of classes with SerialVersionUIDs in both Client and
> Server Library.
> After Post AspectJ weaving, the UIDs in Server classes is modified.So, the
> Server and Client libraries conflict during server startup.
> Does weaving modifies the class UIDs??
> If so, Please let me know when and why the UIDs are modified and how can we
> resolve this issue??
> aspectj-users mailing list