From 5a48ef4153495c44b5aa059379a6463b8a0bef87 Mon Sep 17 00:00:00 2001 From: Jerome Haltom Date: Wed, 18 Dec 2024 16:48:36 -0600 Subject: [PATCH] Only log that we emitted a verifier error. --- src/IKVM.Runtime/compiler.cs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/IKVM.Runtime/compiler.cs b/src/IKVM.Runtime/compiler.cs index f7d8d438f..15fea2c64 100644 --- a/src/IKVM.Runtime/compiler.cs +++ b/src/IKVM.Runtime/compiler.cs @@ -524,10 +524,7 @@ internal static void Compile(RuntimeByteCodeJavaType.FinishContext finish, Runti } catch (VerifyError x) { -#if IMPORTER classLoader.Diagnostics.EmittedVerificationError(classFile.Name + "." + m.Name + m.Signature, x.Message); -#endif - classLoader.Diagnostics.GenericVerifierError(x.ToString()); clazz.SetHasVerifyError(); // because in Java the method is only verified if it is actually called, // we generate code here to throw the VerificationError @@ -536,10 +533,7 @@ internal static void Compile(RuntimeByteCodeJavaType.FinishContext finish, Runti } catch (ClassFormatError x) { -#if IMPORTER classLoader.Diagnostics.EmittedClassFormatError(classFile.Name + "." + m.Name + m.Signature, x.Message); -#endif - classLoader.Diagnostics.GenericVerifierError(x.ToString()); clazz.SetHasClassFormatError(); ilGenerator.EmitThrow("java.lang.ClassFormatError", x.Message); return;