diff --git a/src/constant_pool.rs b/src/constant_pool.rs index 1bce71d..87c47fb 100644 --- a/src/constant_pool.rs +++ b/src/constant_pool.rs @@ -311,7 +311,7 @@ impl<'a> ConstantPoolEntry<'a> { if is_binary_name(x) || is_array_descriptor(x) { Ok(()) } else { - fail!("Invalid binary name") + fail!("Invalid classinfo name") } } diff --git a/src/constant_pool/tests.rs b/src/constant_pool/tests.rs index c9d519d..01303d3 100644 --- a/src/constant_pool/tests.rs +++ b/src/constant_pool/tests.rs @@ -55,7 +55,10 @@ fn test_validate_class_info() { assert_validate_passes!(ClassInfo(wrap(Utf8(Cow::from("some/package/Class"))))); assert_validate_passes!(ClassInfo(wrap(Utf8(Cow::from("[Lsome/package/Class;"))))); - assert_validate_fails!(ClassInfo(wrap(Utf8(Cow::from("")))), "Invalid binary name"); + assert_validate_fails!( + ClassInfo(wrap(Utf8(Cow::from("")))), + "Invalid classinfo name" + ); assert_validate_fails!( ClassInfo(wrap(Utf8Bytes(&[]))), "Attempting to get utf-8 data from non-utf8 constant pool entry!"