X
xarax
The following compiles cleanly with Sun JDK 1.4.1 javac,
but 1.4.2 elicits an error message about the variable
"xx" may have already been assigned:
=================================
public void fubar()
{
final int xx;
int jj;
jj = 0;
while(0 != jj)
{
final int nn;
nn = jj+1;
}
if(0 < jj)
{
xx = 1;
}
else
{
xx = 2;
}
}
=================================
Removing either "final" qualifier circumvents the
problem.
The compilers seems to be confused by the "final"
variable within the while() loop.
WindowsME.
but 1.4.2 elicits an error message about the variable
"xx" may have already been assigned:
=================================
public void fubar()
{
final int xx;
int jj;
jj = 0;
while(0 != jj)
{
final int nn;
nn = jj+1;
}
if(0 < jj)
{
xx = 1;
}
else
{
xx = 2;
}
}
=================================
Removing either "final" qualifier circumvents the
problem.
The compilers seems to be confused by the "final"
variable within the while() loop.
WindowsME.