From c92fc2d61f25c2fccda2f86c32c8c973a715ae5d Mon Sep 17 00:00:00 2001 From: AliveDevil Date: Fri, 5 Jul 2024 09:58:17 +0200 Subject: [PATCH] Keywords --- src/IKVM.Tools.Importer/CompilerClassLoader.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/IKVM.Tools.Importer/CompilerClassLoader.cs b/src/IKVM.Tools.Importer/CompilerClassLoader.cs index 0e7b4b3ca..beed16fed 100644 --- a/src/IKVM.Tools.Importer/CompilerClassLoader.cs +++ b/src/IKVM.Tools.Importer/CompilerClassLoader.cs @@ -291,7 +291,7 @@ private RuntimeJavaType GetTypeWrapperCompilerHook(string name) { f = new ClassFile(Context, ClassReader.Read(itemRef.GetData()), name, ClassFileParseOptions, null); } - catch (Exception x) where (x is ClassFormatError or ByteCodeException) + catch (Exception x) when (x is ByteCodeException or ClassFormatError) { Context.StaticCompiler.SuppressWarning(options, Message.ClassNotFound, name); Context.StaticCompiler.IssueMessage(options, Message.ClassFormatError, name, x.Message);