From 05d53715cf301e5518d8796d4d9115cc90a9134c Mon Sep 17 00:00:00 2001 From: Matthias Baesken Date: Mon, 24 Feb 2025 08:55:49 +0000 Subject: [PATCH] 8349039: Adjust exception No type named in database Backport-of: 669f8c0c07b57fa00ac84b8a90c4a1a1459443e3 --- .../sun/jvm/hotspot/types/basic/BasicTypeDataBase.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/types/basic/BasicTypeDataBase.java b/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/types/basic/BasicTypeDataBase.java index 5a490a7b00f..0737bb3514b 100644 --- a/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/types/basic/BasicTypeDataBase.java +++ b/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/types/basic/BasicTypeDataBase.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2022, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 2025, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -83,7 +83,7 @@ public Type lookupType(String cTypeName) { public Type lookupType(String cTypeName, boolean throwException) { Type type = nameToTypeMap.get(cTypeName); if (type == null && throwException) { - throw new RuntimeException("No type named \"" + cTypeName + "\" in database"); + throw new RuntimeException("No type named \"" + cTypeName + "\" present in type database"); } return type; }