<i18n dev> Review Request: JDK-8073211 javadoc of Format parseObject methods should specify NullPointerExceptions

Naveen Kumar naveen.ah.kumar at oracle.com
Thu Nov 19 19:31:33 UTC 2015


Hi All,
           Please review the following fix in API doc for jdk9

Bug:             https://bugs.openjdk.java.net/browse/JDK-8073211
webrev: http://cr.openjdk.java.net/~naoto/naveen/8073211/webrev.00/

Issue:

The 2 parseObject methods in java.text.Format throw a 
NullPointerException if the parameter "source" is null. However, this is 
not specified in the javadoc. Please note that this should also be 
checked & corrected in all subclasses of java.text.Format

Fix:
       Documentations of /java.text.Format.parseObject(java.lang.String, 
java.text.ParsePosition)/, 
/java.text.Format.parseObject(java.lang.String)/, 
/java.text.MessageFormat.parseObject(java.lang.String, 
java.text.ParsePosition)/, 
/java.text.DateFormat.parseObject(java.lang.String, 
java.text.ParsePosition)/, 
/java.text.NumberFormat.parseObject(java.lang.String, 
java.text.ParsePosition)/ are updated with the following addition:

* @throws NullPointerException if {@code source} is null.


regards
Naveen Kumar


More information about the i18n-dev mailing list