Skip to content

Commit 0b3058f

Browse files
author
thk123
committed
Tightened up exception for unknown handling
We don't have a test that exercises this exception so modified the message to not mislead and say to do with recursive generic types.
1 parent 9f87a80 commit 0b3058f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/java_bytecode/java_types.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,8 @@ build_class_name(const std::string &src, const std::string &class_name_prefix)
363363
{
364364
std::size_t e_pos = find_closing_delimiter(src, f_pos, '<', '>');
365365
if(e_pos == std::string::npos)
366-
throw unsupported_java_class_signature_exceptiont("recursive generic");
366+
throw unsupported_java_class_signature_exceptiont(
367+
"Parsing type with unmatched generic bracket: " + src);
367368

368369
add_generic_type_information(
369370
result, src.substr(f_pos, e_pos - f_pos + 1), class_name_prefix);

0 commit comments

Comments
 (0)