serialVersionUID.. ?  
Author Message
IchBin





PostPosted: 2004-8-3 1:46:00 Top

java-programmer, serialVersionUID.. ? Hello ,


I posted this message in the Eclpse group with no responses. I am using
Eclipse.


I resolved by defining this in my class:


static final long serialVersionUID = 0;



Now, all of a sudden, this is not working and getting error:


Syntax error on token "DETAIL_FOOTER", VariableDeclaratorId expected after
this token


Happens when I define this class var in applet or interface:

private DETAIL_FOOTER = "# detail footer";



I do not have a clue! Any one have any Ideas?

--

Thanks in Advance...

IchBin

_____________________________________________

'Black holes are where God divided by zero.'

-Steven Wright, comedian (1955- )




 
zoopy





PostPosted: 2004-8-3 3:01:00 Top

java-programmer >> serialVersionUID.. ? On 2-8-2004 19:46, IchBin wrote:
> Hello ,
>
>
> I posted this message in the Eclpse group with no responses. I am using
> Eclipse.
>
>
> I resolved by defining this in my class:
>
>
> static final long serialVersionUID = 0;
>
>
>
> Now, all of a sudden, this is not working and getting error:
>
>
> Syntax error on token "DETAIL_FOOTER", VariableDeclaratorId expected after
> this token
>
>
> Happens when I define this class var in applet or interface:
>
> private DETAIL_FOOTER = "# detail footer";
>
>
>
> I do not have a clue! Any one have any Ideas?
>
The type of the variable is missing; probably you want

private String DETAIL_FOOTER = "# detail footer";
******

[Eclipse thinks DETAIL_FOOTER is the type and that the name of the variable is missing]

HTH,
Z.
 
IchBin





PostPosted: 2004-8-3 4:12:00 Top

java-programmer >> serialVersionUID.. ? Thanks... I fixed it and did not post back to this newsgroup in time.

--
Thanks in Advance...
IchBin
_____________________________________________

'Black holes are where God divided by zero.'
-Steven Wright, comedian (1955- )
"zoopy" <email***@***.com> wrote in message
news:410e8f45$0$10528$email***@***.com...
> On 2-8-2004 19:46, IchBin wrote:
> > Hello ,
> >
> >
> > I posted this message in the Eclpse group with no responses. I am using
> > Eclipse.
> >
> >
> > I resolved by defining this in my class:
> >
> >
> > static final long serialVersionUID = 0;
> >
> >
> >
> > Now, all of a sudden, this is not working and getting error:
> >
> >
> > Syntax error on token "DETAIL_FOOTER", VariableDeclaratorId expected
after
> > this token
> >
> >
> > Happens when I define this class var in applet or interface:
> >
> > private DETAIL_FOOTER = "# detail footer";
> >
> >
> >
> > I do not have a clue! Any one have any Ideas?
> >
> The type of the variable is missing; probably you want
>
> private String DETAIL_FOOTER = "# detail footer";
> ******
>
> [Eclipse thinks DETAIL_FOOTER is the type and that the name of the
variable is missing]
>
> HTH,
> Z.