8349039: Adjust exception No type named <ThreadType> in database

Backport-of: 669f8c0c07
This commit is contained in:
Matthias Baesken
2025-02-25 13:29:14 +00:00
committed by Sergey Shelomentsev
parent ae064d69b0
commit 96458eba85

View File

@@ -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 class BasicTypeDataBase implements TypeDataBase {
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;
}