-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
1.4.0
-
sparc
-
solaris_2.6
Name: ktR10099 Date: 11/06/2001
Spec doesn't describe the following methods' behavior when null is passed
as a parameter:
public int charsWidth(char[] data, int off, int len)
public int bytesWidth(byte[] data, int off, int len)
public int stringWidth(String str)
The specification for these methods should be
changed as it is described in the document
"Requirements for Writing Java API Specifications":
http://java.sun.com/j2se/javadoc/writingapispecs/index.html
If NullPointerException should be thrown, it has to be defined
explicitely by the spec.
======================================================================
Spec doesn't describe the following methods' behavior when null is passed
as a parameter:
public int charsWidth(char[] data, int off, int len)
public int bytesWidth(byte[] data, int off, int len)
public int stringWidth(String str)
The specification for these methods should be
changed as it is described in the document
"Requirements for Writing Java API Specifications":
http://java.sun.com/j2se/javadoc/writingapispecs/index.html
If NullPointerException should be thrown, it has to be defined
explicitely by the spec.
======================================================================
- duplicates
-
JDK-4524710 spec for java.awt.FontMetrics methods is silent when args are incorrect
-
- Closed
-