classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cp-patches] Re: RFC: Patch for duplicate entries in serialPersisten


From: Mark Wielaard
Subject: Re: [cp-patches] Re: RFC: Patch for duplicate entries in serialPersistentFields
Date: Sat, 17 Dec 2005 13:56:40 +0100

Hi,

On Wed, 2005-12-14 at 20:39 +0100, Guilhem Lavaux wrote:
> Mark, actually I don't see what benefit we could get of moving some 
> Array.sort & copy to getSerialPersistentFields. So I have not done it 
> for the moment.

No problem, I just hoped we could safe some duplicate code, but I didn't
actually check whether that could actually be done.

> +
> +     if (fields == ObjectStreamClass.INVALID_FIELDS)
> +       throw new InvalidClassException("serialPersistentFields in class " + 
> osc.getName() + " is invalid");
> +

Better to use the 2 argument constructor
InvalidClassException(String classname, String message) here.
Also try to keep line under 80 chars.

Cheers,

Mark

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

[Prev in Thread] Current Thread [Next in Thread]