Ensure that the implementation does not generate subsequent warnings for each 
row exceeded above the maximum allowed. 

Additional fixes included
- `crs` created via hashtable c-tor no longer throws `NPE` when its warning is 
referenced.
- 2-arg `populate` uses `setWarning` with a `RowSetWarning` which fixes the 
issue when the warning was polled by client and an `Error` occurred, because 
`setException` does not expect an `SQLException`
- Root warning is no longer a pointless blank warning. The root warning now 
always contains a valid warning message.

---------
- [x] I confirm that I make this contribution in accordance with the [OpenJDK 
Interim AI Policy](https://openjdk.org/legal/ai).

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

Commit messages:
 - Impl fixes
 - Add test

Changes: https://git.openjdk.org/jdk/pull/32033/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=32033&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8388810
  Stats: 188 lines in 2 files changed: 173 ins; 7 del; 8 mod
  Patch: https://git.openjdk.org/jdk/pull/32033.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/32033/head:pull/32033

PR: https://git.openjdk.org/jdk/pull/32033

Reply via email to