[OpenJDK 2D-Dev] RFR: 6211257: BasicStroke.createStrokedShape(Shape): NPE is not specified [v2]

Prasanta Sadhukhan psadhukhan at openjdk.java.net
Thu Feb 4 04:15:03 UTC 2021


> Method createStrokedShape(Shape) for java.awt.BasicStroke class throws NullPointerException when passed a null object reference for a input parameter but it's not specified in the spec.
> Updated spec to illustrate this.

Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision:

  Doc change to @throws

-------------

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/2377/files
  - new: https://git.openjdk.java.net/jdk/pull/2377/files/899868c0..f7d6e8fe

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=2377&range=01
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=2377&range=00-01

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.java.net/jdk/pull/2377.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/2377/head:pull/2377

PR: https://git.openjdk.java.net/jdk/pull/2377


More information about the 2d-dev mailing list