Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 33566 invoked from network); 19 Aug 2002 08:24:26 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 19 Aug 2002 08:24:26 -0000 Received: (qmail 1256 invoked by uid 97); 19 Aug 2002 08:25:03 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@jakarta.apache.org Received: (qmail 1235 invoked by uid 97); 19 Aug 2002 08:25:02 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 1223 invoked by uid 98); 19 Aug 2002 08:25:02 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) X-Qmail-Scanner-Mail-From: baliuka@centras.lt via jim.skynet.vl X-Qmail-Scanner: 1.03 (Clean. Processed in 2.529486 secs) Message-ID: <007101c24759$d759e750$0111010a@user> From: "Juozas Baliuka" To: "Jakarta Commons Developers List" References: <7382FCA44E27D411BD4A00508BD68F9504BB0B3D@pigeon.tumbleweed.com> Subject: Re: Coding conventions in Commons Date: Mon, 19 Aug 2002 10:24:30 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi, It is very trivial to choose style for me: Microsoft recomendations for MFC application. Borland recomendations for VCL component. STL style for "pure" C++ code. Sun code conventions for the Java. ...................................................... It is not because they are "good" or I like them, but because they are "well known", and I don't think it is some meaning to invent a new one. ----- Original Message ----- From: "Martin Cooper" To: "'Jakarta Commons Developers List'" Sent: Monday, August 19, 2002 5:31 AM Subject: Coding conventions in Commons > I seem to have unwittingly caused discussion of this subject in multiple > threads now, so I figured that perhaps it should have a thread of its own. > > Yesterday, I changed the coding style of the FileUpload project from its > original Turbine style to the Sun conventions. I did that because I > perceived the Commons conventions to be the Sun ones, and because I wanted > to clean up the Checkstyle complaints that were being generated. I certainly > intended no disrespect to the original authors of the code. > > Jason has requested that the code be reverted to the Turbine conventions, > since that is where the code originally came from. A couple of people have > stated that the code should not be reverted, because the Sun conventions are > the Commons conventions. Finally, Jason has pointed out that there is no > agreed convention in Commons. > > For reference, here are the messages involved so far: > > http://marc.theaimsgroup.com/?l=jakarta-commons-dev&m=102967366201849&w=2 > http://marc.theaimsgroup.com/?l=jakarta-commons-dev&m=102970211418160&w=2 > http://marc.theaimsgroup.com/?l=jakarta-commons-dev&m=102971538626083&w=2 > http://marc.theaimsgroup.com/?l=jakarta-commons-dev&m=102972335730128&w=2 > > and here are some Commons references: > > http://jakarta.apache.org/commons/charter.html#Resources > http://jakarta.apache.org/site/source.html > > In the last of these links, the following statement is made regarding coding > conventions: > > --------------- > All Java Language source code in the repository must be written in > conformance to the "Code Conventions for the Java Programming Language" as > published by Sun, or in conformance with another well-defined convention > specified by the subproject. > --------------- > > That seems to state that each Jakarta subproject - of which Commons is one - > must define one coding convention for all of its code. That, in turn, > implies that Commons should have one coding convention across all Commons > components. The above also implies that Commons has elected to follow the > Sun conventions, by virtue of the fact that no other well-defined convention > has been adopted. > > I want to point out that I am not averse to reverting the changes I made to > FileUpload (although I have a mild personal preference for the Sun > guidelines :). However, in the absence of any agreement to the contrary, > this would appear to violate the statement quoted above. > > So that we are all on the same page going forward, then, I think we need to > explicitly state what the coding conventions for Commons are. Either we have > to define a single set of conventions across all components, or we > presumably have to "get permission" for Commons to have divergent sets of > conventions in the same Jakarta subproject. > > Comments? > > -- > Martin Cooper > > > -- > To unsubscribe, e-mail: > For additional commands, e-mail: > -- To unsubscribe, e-mail: For additional commands, e-mail: