SimpleDateFormat parsing errors
Would someone please change the code so that SimpleDateFormat will parse a string that is shorter than the format. For example:
DateFormat format = new SimpleDateFormat("yyyy-MM-dd");
format.setLenient(true);
format.parse("2003-04"); <-- throws an exception even though it's valid
Please insert at line 1089
if (start >= textLength && this.isLenient()) {
break;
}
But I will need to know the version number and date from the file.
Otherwise, if we aren't looking at the same file then I won't know
that the line numbers are the same. It will be best if you post
the first three lines including this information:
/*
* @(#)SimpleDateFormat.javax.xx xx/xx/xx
*
That way I can make sure the code you sent goes in the right spot.
Otherwise it will be my third strike and I will surely be fired.
Also, I think it's too late to make it into the next release so
you'll have to wait a while. Until then, I suggest that it's
possible for you to write your own implementation.