classpath
[Top][All Lists]
Advanced

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

Re: new jalopy available


From: Michael Koch
Subject: Re: new jalopy available
Date: Sat, 22 Nov 2003 15:45:15 +0100
User-agent: Mutt/1.3.28i

On Sat, Nov 22, 2003 at 07:35:48AM -0700, Eric Blake wrote:
> I've noticed two general styles of 'sorting' in Classpath sources.  Both 
> styles separate the metadata types (all fields are listed, followed by 
> member classes, constructors, methods).  Within those groupings, one style 
> sorts all methods alphabetically, and the other sorts methods according to 
> the order which they are listed in Sun's documentation (which tends to be, 
> but isn't always, by common functionality).  There is also the question of 
> whether implementation-only members (private or default access) should be 
> mixed in with exposed members (protected or public), or whether they come 
> later.
> 
> I don't have a general opinion - alphabetical sorting makes it easier to 
> find a method when just reading a file, but following Sun's sorting makes 
> it easier to compare a method to Sun's documentation of how it should 
> behave.  Either choice is fine with me, especially since emacs has 
> wrap-around searching.  But if Jalopy can make the decision easier, by 
> enforcing a sorting style, it might be worth considering.


Serializable classes have to have their fields in the same order as in
in SUNs classes because of serialization issues.


Michael




reply via email to

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