-
Bug
-
Resolution: Duplicate
-
P2
-
6
-
generic
-
generic
JCK : JCK6.0 b19
J2SE : FAIL - *SINCE* mustang b74
Platform[s] : FAIL - all
switch/Mode : FAIL - default
Negative test api/java_sql/Timestamp/descriptions.html#ValueOf[Timestamp0020] fails since mustang b74 because Timestamp throws ArrayOutOfBoundsException instead of IllegalArgumentException.
Steps to reproduce:
compile and run the following code. It returns different messages on mustang b73 and b74.
import java.sql.*;
public class ValueOfTests {
public static void main(String argv[]) {
try {
Timestamp t = Timestamp.valueOf("1996-10-10 12:30:40:50");
System.out.println("Test failed, valueOf() = " + t);
}
catch (IllegalArgumentException e)
{
System.out.println( "OKAY" );
}
catch (Exception e)
{
e.printStackTrace();
}
}
}
J2SE : FAIL - *SINCE* mustang b74
Platform[s] : FAIL - all
switch/Mode : FAIL - default
Negative test api/java_sql/Timestamp/descriptions.html#ValueOf[Timestamp0020] fails since mustang b74 because Timestamp throws ArrayOutOfBoundsException instead of IllegalArgumentException.
Steps to reproduce:
compile and run the following code. It returns different messages on mustang b73 and b74.
import java.sql.*;
public class ValueOfTests {
public static void main(String argv[]) {
try {
Timestamp t = Timestamp.valueOf("1996-10-10 12:30:40:50");
System.out.println("Test failed, valueOf() = " + t);
}
catch (IllegalArgumentException e)
{
System.out.println( "OKAY" );
}
catch (Exception e)
{
e.printStackTrace();
}
}
}
- duplicates
-
JDK-5006540 java.sql.Timestamp.valueOf(String) fails to throw an IllegalArgumentException
-
- Closed
-