#131 Problem with String.valueOf(int)

open
nobody
None
5
2003-08-22
2003-08-22
Anonymous
No

I have a problem only with 1.3.b2.

In Java I load and execute a beanshell file
In this file I have extarct the problem.

String stringVersion=informationVersion.getValue();
if (stringVersion!=null)
{
int version=Integer.valueOf(stringVersion);
version++;

print("stringVersion="+stringVersion);
print("version="+version);

stringVersion=String.valueOf(version);
print("NewstringVersion="+stringVersion);
}

==============

The result is for example :

stringVersion=1
version=2
NewstringVersion=1 ???

Discussion