You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Ralph Goers <ra...@dslextreme.com> on 2010/12/01 00:58:31 UTC

Re: VFS release

On Nov 30, 2010, at 2:12 PM, Gary Gregory wrote:

> 
> Ok, how about pushing checkstyle.xml up to commons-parent and associated Maven magic?
> 

Can we do that after releasing VFS 2.0?

Ralph


RE: VFS release

Posted by Gary Gregory <GG...@seagullsoftware.com>.
> -----Original Message-----
> From: Ralph Goers [mailto:ralph.goers@dslextreme.com]
> Sent: Tuesday, November 30, 2010 18:59
> To: Commons Developers List
> Subject: Re: VFS release
> 
> 
> On Nov 30, 2010, at 2:12 PM, Gary Gregory wrote:
> 
> >
> > Ok, how about pushing checkstyle.xml up to commons-parent and associated
> Maven magic?
> >
> 
> Can we do that after releasing VFS 2.0?

Sure! 

Gary

> 
> Ralph


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


RE: VFS release

Posted by Gary Gregory <GG...@seagullsoftware.com>.
> -----Original Message-----
> From: Jörg Schaible [mailto:joerg.schaible@gmx.de]
> Sent: Thursday, December 02, 2010 14:11
> To: dev@commons.apache.org
> Subject: RE: VFS release
> 
> Gary Gregory wrote:
> 
> > How about warnings like:
> >
> > Description	Resource	Path	Location	Type
> > The serializable class FileNotFolderException does not declare a static
> > final serialVersionUID field of type long
> FileNotFolderException.java
> > /commons-vfs2/src/main/java/org/apache/commons/vfs2	line 24	Java
> Problem
> >
> > ?
> 
> The serialVersionUID is part of the binary compatibility therefore it should
> be set to be sure. Setting it implies though that you update it every time
> you change the binary layout of the class (ot take further actions to keep
> serialization compatibility). Without using an explicit value, the
> serialVeeionUID is computed on its own and you might not even notice the
> problem (in former times different compilers created sometimes different
> UIDs). In our code we set it normally to the date of last modification if
> the binary layout e.g. 20101102L.

I usually add serialVersionUID = -1 but I do like your convention. So I added serialVersionUID = 20101208L

Gary

> 
> - Jörg
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org


RE: VFS release

Posted by Jörg Schaible <jo...@gmx.de>.
Gary Gregory wrote:

> How about warnings like:
> 
> Description	Resource	Path	Location	Type
> The serializable class FileNotFolderException does not declare a static
> final serialVersionUID field of type long	
FileNotFolderException.java
> /commons-vfs2/src/main/java/org/apache/commons/vfs2	line 24	Java 
Problem
> 
> ?

The serialVersionUID is part of the binary compatibility therefore it should 
be set to be sure. Setting it implies though that you update it every time 
you change the binary layout of the class (ot take further actions to keep 
serialization compatibility). Without using an explicit value, the 
serialVeeionUID is computed on its own and you might not even notice the 
problem (in former times different compilers created sometimes different 
UIDs). In our code we set it normally to the date of last modification if 
the binary layout e.g. 20101102L.

- Jörg


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


RE: VFS release

Posted by Gary Gregory <GG...@seagullsoftware.com>.
How about warnings like:

Description	Resource	Path	Location	Type
The serializable class FileNotFolderException does not declare a static final serialVersionUID field of type long	FileNotFolderException.java	/commons-vfs2/src/main/java/org/apache/commons/vfs2	line 24	Java Problem

?

Gary Gregory
Senior Software Engineer
Rocket Software
3340 Peachtree Road, Suite 820 . Atlanta, GA 30326 . USA
Tel: +1.404.760.1560
Email: ggregory@seagullsoftware.com
Web: seagull.rocketsoftware.com  



> -----Original Message-----
> From: Ralph Goers [mailto:ralph.goers@dslextreme.com]
> Sent: Tuesday, November 30, 2010 18:59
> To: Commons Developers List
> Subject: Re: VFS release
> 
> 
> On Nov 30, 2010, at 2:12 PM, Gary Gregory wrote:
> 
> >
> > Ok, how about pushing checkstyle.xml up to commons-parent and associated
> Maven magic?
> >
> 
> Can we do that after releasing VFS 2.0?
> 
> Ralph


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org