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);