Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » serializable class and serialVersionUID
serializable class and serialVersionUID [message #60061] Tue, 04 January 2005 12:04 Go to next message
Eclipse UserFriend
quick question - with the latest version of wtp and eclipse i now get the
error

"the serializable class xxxxxx doesn't declare a staic final
serialVersionUID field of the type long"

i get this for all servlets, any idea why? how do i cure this?

thx.
Re: serializable class and serialVersionUID [message #60161 is a reply to message #60061] Tue, 04 January 2005 12:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: chabert.fimasys.fr

stuart wrote:
> quick question - with the latest version of wtp and eclipse i now get
> the error
>
> "the serializable class xxxxxx doesn't declare a staic final
> serialVersionUID field of the type long"
>
> i get this for all servlets, any idea why? how do i cure this?
>
> thx.
>
hello stuart,

it is a compiler check on eclipse3.1M4, and not the WTP1.0M2.
You can disable it by setting to "ignore" the combo
Window->Preferences->Java->Compiler->Error/Warnings
->Potential Programming Problems
->Serializable class without serialVersionUID .

Sylvain
Re: serializable class and serialVersionUID [message #60917 is a reply to message #60161] Wed, 05 January 2005 04:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Sylvain Chabert wrote:

> stuart wrote:
>
>> quick question - with the latest version of wtp and eclipse i now get
>> the error
>>
>> "the serializable class xxxxxx doesn't declare a staic final
>> serialVersionUID field of the type long"
>>
>> i get this for all servlets, any idea why? how do i cure this?
>>
>> thx.
>>
> hello stuart,
>
> it is a compiler check on eclipse3.1M4, and not the WTP1.0M2.
> You can disable it by setting to "ignore" the combo
> Window->Preferences->Java->Compiler->Error/Warnings
> ->Potential Programming Problems
> ->Serializable class without serialVersionUID .

In case you want to fix the problem there's Quick Fix.

Dani

>
> Sylvain
Re: serializable class and serialVersionUID [message #60941 is a reply to message #60061] Wed, 05 January 2005 04:29 Go to previous message
Eclipse UserFriend
> i get this for all servlets, any idea why? how do i cure this?
>

In the Problems view, right click on the warning, and press 'Quick fix' ;).
Previous Topic:FAQ
Next Topic:Updating JSP Index error
Goto Forum:
  


Current Time: Sun Jun 01 07:22:48 EDT 2025

Powered by FUDForum. Page generated in 0.04352 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top