Skip to content

Commit

Permalink
Only log that we emitted a verifier error.
Browse files Browse the repository at this point in the history
  • Loading branch information
wasabii committed Dec 18, 2024
1 parent af34b1c commit 5a48ef4
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/IKVM.Runtime/compiler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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;
Expand Down

0 comments on commit 5a48ef4

Please sign in to comment.