Skip to content

Commit

Permalink
8349039: Adjust exception No type named <ThreadType> in database
Browse files Browse the repository at this point in the history
Backport-of: 669f8c0c07b57fa00ac84b8a90c4a1a1459443e3
  • Loading branch information
MBaesken committed Feb 24, 2025
1 parent a5f39c1 commit 05d5371
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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;
}
Expand Down

1 comment on commit 05d5371

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.