On Wed, 27 Sep 2023 21:34:37 GMT, Alex Menkov <[email protected]> wrote:
> The change fixes 2 issues in hprof test library.
> The issue were discovered during test development (logging values of dumped
> heap objects).
> - JavaValueArray.elementSize cannot determine size of the array elements and
> throws RuntimeException: invalid array element type
> - JavaObject.toString() method for dumped String objects tries to construct
> string value of the object from "value" field assuming "value" field is array
> of char. Actually it's byte array, so toString return array values like "{65,
> 66, 67}" (with fixed JavaValueArray.elementSize)
This pull request has now been integrated.
Changeset: f7deaf4b
Author: Alex Menkov <[email protected]>
URL:
https://git.openjdk.org/jdk/commit/f7deaf4bef21cb86fcc8a6c10454fbd6bbbba2d9
Stats: 196 lines in 3 files changed: 185 ins; 0 del; 11 mod
8316778: test hprof lib: invalid array element type from
JavaValueArray.elementSize
Reviewed-by: cjplummer, lmesnik, sspitsyn
-------------
PR: https://git.openjdk.org/jdk/pull/15953