JAVA: serialVersionUID error

tatacalutatacalu New
edited June 2007 in Internet & Media
hey there!

I opened a file with Eclipse SDK 3.2.2, and a certain warning appears:

The serializable class xxx does not declare a static final serialVersionUID field of type long.

After hitting Ctrl-1, a few options appeared, one of them being Add generated serial version ID.

Clicking that, a new line appeared into my class:
private static final long serialVersionUID = -318066740353445032;

Well ,I thought that with this done, I solved the problem, but the warning still remains there..... what can I do??

Comments

  • tatacalutatacalu New
    edited June 2007
    Answer found:

    I had to rebuild that file again so Eclipse could interpret that problem as "solved". Easy as pie :)

    :rockon:
Sign In or Register to comment.