diff --git a/src/net/JNetReflector/InternalExtensions.cs b/src/net/JNetReflector/InternalExtensions.cs index f52ced53d9..58a03aa056 100644 --- a/src/net/JNetReflector/InternalExtensions.cs +++ b/src/net/JNetReflector/InternalExtensions.cs @@ -31,6 +31,7 @@ using System.Text.RegularExpressions; using Org.Mases.Jnet; using System.Diagnostics; +using MASES.JCOBridge.C2JBridge; namespace MASES.JNetReflector { @@ -437,9 +438,9 @@ public static Class JVMClass(this ZipArchiveEntry entry) { return Class.ForName(cName, true, Class.SystemClassLoader); } - catch (ClassNotFoundException cnfe) + catch (JVMBridgeException cnfe) { - ReflectionUtils.ReportTrace(ReflectionUtils.ReflectionTraceLevel.Error, $"JVMClass: ClassNotFoundException loading {cName} with error: {cnfe.Message}"); + ReflectionUtils.ReportTrace(ReflectionUtils.ReflectionTraceLevel.Error, $"JVMClass: {cnfe.GetType().Name} loading {cName} with message: {cnfe.Message}"); return null; } catch diff --git a/src/net/JNetReflector/JNetReflector.csproj b/src/net/JNetReflector/JNetReflector.csproj index b402f4c138..41d1548b67 100644 --- a/src/net/JNetReflector/JNetReflector.csproj +++ b/src/net/JNetReflector/JNetReflector.csproj @@ -54,11 +54,15 @@ + + + + @@ -78,8 +82,11 @@ + + +