8313891: JFR: Incorrect exception message for RecordedObject::getInt

Reviewed-by: mgronlun
This commit is contained in:
Erik Gahlin 2023-08-09 11:46:25 +00:00
parent 0e2c72d7a5
commit 213d3c449a

@ -539,7 +539,7 @@ public sealed class RecordedObject
case UnsignedValue(Integer i) -> i;
case UnsignedValue(Short s) -> Short.toUnsignedInt(s);
case UnsignedValue(Byte b) -> Byte.toUnsignedInt(b);
case null, default -> throw newIllegalArgumentException(name, "short");
case null, default -> throw newIllegalArgumentException(name, "int");
};
}