Affects Version/s: 1.1_01
Fix Version/s: 1.2
Operating System: All
The Javadoc for ResponseWriter.writeAttribute() notes that NullPointerException
is thrown if name is null. Quite deliberately, it does not state that an NPE
should be thrown if value is null (the proper behavior is a no-op). This saves
renderer authors a lot of tedious "if (someAttrValue != null)" code.
However, HtmlResponseWriter.writeAttribute() has some different Javadoc, and
incorrectly throws an NPE if value is null.
The spec for ResponseWriter.writeAttribute() should be clarified that null is a
legit value (and a no-op), and HtmlResponseWriter should be fixed.