facebook

serialVersionUID problem while creating the servlet

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #239217 Reply

    rambrother
    Member

    Dear all,
    i am facing the below problem……

    Severity Description Resource In Folder Location Creation Time Id
    1 The serializable class Hello does not declare a static final serialVersionUID field of type long Hello.java HelloWorld/src/com/HelloWorld line 11 October 12, 2005 11:51:10 AM 91

    by clicking the left margin of java file , i was able to add the below the line
    private static final long serialVersionUID = 1L;

    but why is it asking for all the files while creating java extension file…..

    with regards,
    rambrother

    #239335 Reply

    Riyad Kalla
    Member

    Moving to OT > Soft Dev

    rambrother,
    This is a new feature in Eclipse 3.1, it is a compiler warning that is turned on by default. You can either generate the Serial IDs for your classes, or turn off the warning under your compiler settings.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: serialVersionUID problem while creating the servlet

You must be logged in to post in the forum log in