-
Bug
-
Resolution: Fixed
-
P3
-
1.1.4
-
1.1.6
-
sparc
-
solaris_2.5
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2017198 | 1.2.0 | John Oconner | P3 | Resolved | Fixed | 1.2beta3 |
Name: dfC67450 Date: 10/01/97
The java.text.DecimalFormatSymbols.equals(Object) method does not work correctly.
This method should return false if called with null argument
(see general contract for equals(): JLS 1.0 item 20.1.3, page 459).
But it throws NullPointerException.
Here is the test demonstrating the bug:
-----------------Test.java------------------------
import java.text.DecimalFormatSymbols;
public class Test {
public static void main (String args[]){
DecimalFormatSymbols dfs = new DecimalFormatSymbols();
dfs.equals(null);
}
}
---------Output from the test---------------------
java.lang.NullPointerException
at java.text.DecimalFormatSymbols.equals(DecimalFormatSymbols.java)
at Test.main(Test.java:6)
--------------------------------------------------
======================================================================
- backported by
-
JDK-2017198 java.text.DecimalFormatSymbols.equals(null) throws NullPointerException
-
- Resolved
-