Eclipse warning concerning serializable classes

2004-11-19 Thread Leszek Gawron
The serializable class PageLocalImpl does not declare a static final serialVersionUID field of type long There is a lot of these in cocoon's sources. Can I fix that by adding: private static final long serialVersionUID = 1L; This is one of eclipse's QuickFix so I can have this done in few minutes

Re: Eclipse warning concerning serializable classes

2004-11-19 Thread Antonio Gallardo
Hi Lezsek wich version of eclipse are you using? Best Regards, Antonio Gallardo Leszek Gawron dijo: > The serializable class PageLocalImpl does not declare a static final > serialVersionUID field of type long > > There is a lot of these in cocoon's sources. Can I fix that by adding: > private st

Re: Eclipse warning concerning serializable classes

2004-11-19 Thread Leszek Gawron
Antonio Gallardo wrote: Hi Lezsek wich version of eclipse are you using? Best Regards, Antonio Gallardo Leszek Gawron dijo: The serializable class PageLocalImpl does not declare a static final serialVersionUID field of type long There is a lot of these in cocoon's sources. Can I fix that by adding:

Re: Eclipse warning concerning serializable classes

2004-11-19 Thread Vadim Gritsenko
Leszek Gawron wrote: The serializable class PageLocalImpl does not declare a static final serialVersionUID field of type long There is a lot of these in cocoon's sources. Can I fix that by adding: private static final long serialVersionUID = 1L; No! "1" is not "The stream-unique identifier". http

Re: Eclipse warning concerning serializable classes

2004-11-19 Thread Leszek Gawron
Vadim Gritsenko wrote: Leszek Gawron wrote: The serializable class PageLocalImpl does not declare a static final serialVersionUID field of type long There is a lot of these in cocoon's sources. Can I fix that by adding: private static final long serialVersionUID = 1L; No! "1" is not "The stream-

Re: Eclipse warning concerning serializable classes

2004-11-20 Thread Ugo Cei
Il giorno 19/nov/04, alle 23:18, Leszek Gawron ha scritto: The serializable class PageLocalImpl does not declare a static final serialVersionUID field of type long There is a lot of these in cocoon's sources. Can I fix that by adding: private static final long serialVersionUID = 1L; Wouldn't it b

Re: Eclipse warning concerning serializable classes

2004-11-20 Thread Leszek Gawron
Ugo Cei wrote: Il giorno 19/nov/04, alle 23:18, Leszek Gawron ha scritto: The serializable class PageLocalImpl does not declare a static final serialVersionUID field of type long There is a lot of these in cocoon's sources. Can I fix that by adding: private static final long serialVersionUID = 1L

Re: Eclipse warning concerning serializable classes

2004-11-20 Thread Ugo Cei
Il giorno 20/nov/04, alle 10:34, Leszek Gawron ha scritto: I've found some neat ant task: http://serialver.sourceforge.net/serialver.html Then go for it! I hate those warnings and was planning to remove some of them myself, like unread local variables or declared exceptions that are never thrown.

Re: Eclipse warning concerning serializable classes

2004-11-20 Thread Sylvain Wallez
Ugo Cei wrote: Il giorno 20/nov/04, alle 10:34, Leszek Gawron ha scritto: I've found some neat ant task: http://serialver.sourceforge.net/serialver.html Then go for it! I hate those warnings and was planning to remove some of them myself, like unread local variables or declared exceptions that a

Re: Eclipse warning concerning serializable classes

2004-11-20 Thread Leszek Gawron
Sylvain Wallez wrote: Ugo Cei wrote: Il giorno 20/nov/04, alle 10:34, Leszek Gawron ha scritto: I've found some neat ant task: http://serialver.sourceforge.net/serialver.html Then go for it! I hate those warnings and was planning to remove some of them myself, like unread local variables or decla

Re: Eclipse warning concerning serializable classes

2004-11-20 Thread Niclas Hedhman
On Saturday 20 November 2004 08:16, Vadim Gritsenko wrote: > No! "1" is not "The stream-unique identifier". Vadim, I don't know where you get that 1L wouldn't work... But it does (and I kind of know what I am talking about). The serialVersionUID is used to determine the compatibility between a

Re: Eclipse warning concerning serializable classes

2004-11-20 Thread Vadim Gritsenko
Niclas Hedhman wrote: On Saturday 20 November 2004 08:16, Vadim Gritsenko wrote: No! "1" is not "The stream-unique identifier". Vadim, I don't know where you get that 1L wouldn't work... But it does (and I kind of know what I am talking about). Only from the Sun doc - I've not taken my time readin

Re: Eclipse warning concerning serializable classes

2004-11-20 Thread Vadim Gritsenko
Ugo Cei wrote: Then go for it! I hate those warnings and was planning to remove some of them myself, like unread local variables or declared exceptions that are never thrown. There is a caveat: if you remove declared but not thrown exception, you'll break all classes which use this method. Vadi

Re: Eclipse warning concerning serializable classes

2004-11-20 Thread Ugo Cei
Il giorno 20/nov/04, alle 18:45, Vadim Gritsenko ha scritto: Ugo Cei wrote: Then go for it! I hate those warnings and was planning to remove some of them myself, like unread local variables or declared exceptions that are never thrown. There is a caveat: if you remove declared but not thrown exce

Re: Eclipse warning concerning serializable classes

2004-11-20 Thread Niclas Hedhman
On Sunday 21 November 2004 01:38, Vadim Gritsenko wrote: > Only from the Sun doc - I've not taken my time reading their serialization > source code. Doc gives impression that it is gotta be universally unique > number. :o) Your "excuse" is accepted... To brief you why I "happen to know"; I us