Skip to content

Commit 213d3c4

Browse files
committed
8313891: JFR: Incorrect exception message for RecordedObject::getInt
Reviewed-by: mgronlun
1 parent 0e2c72d commit 213d3c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jdk.jfr/share/classes/jdk/jfr/consumer/RecordedObject.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ public final int getInt(String name) {
539539
case UnsignedValue(Integer i) -> i;
540540
case UnsignedValue(Short s) -> Short.toUnsignedInt(s);
541541
case UnsignedValue(Byte b) -> Byte.toUnsignedInt(b);
542-
case null, default -> throw newIllegalArgumentException(name, "short");
542+
case null, default -> throw newIllegalArgumentException(name, "int");
543543
};
544544
}
545545

0 commit comments

Comments
 (0)