Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
-
Windows XP professional
-
Novice
Description
Build: classlib+VM revision 421248 msvc debug
Problem:
Some Collections.checked... methods throw NPE if one of their arguments is null in RI but don't throw in Harmony
Code to reproduce:
import java.util.*;
public class Test {
public static void main (String[] args) {
try
catch (NullPointerException e) {
}
try
catch (NullPointerException e) {
}
try
catch (NullPointerException e) {
}
try
catch (NullPointerException e) {
}
try
catch (NullPointerException e) {
}
}
}
in RI this test prints nothing, in Harmony all 'fail' messages are printed
Please see the patch attached. It contains:
- JUnit test for the problem
- patch for java.util.Collections