diff --git a/src/net/JNetReflector/InternalExtensions.cs b/src/net/JNetReflector/InternalExtensions.cs index fba89868a2..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 { @@ -432,11 +433,16 @@ public static string JVMFullQualifiedClassName(this ZipArchiveEntry entry) public static Class JVMClass(this ZipArchiveEntry entry) { + var cName = entry.JVMFullQualifiedClassName(); try { - var cName = entry.JVMFullQualifiedClassName(); return Class.ForName(cName, true, Class.SystemClassLoader); } + catch (JVMBridgeException cnfe) + { + ReflectionUtils.ReportTrace(ReflectionUtils.ReflectionTraceLevel.Error, $"JVMClass: {cnfe.GetType().Name} loading {cName} with message: {cnfe.Message}"); + return null; + } catch { return null; diff --git a/src/net/JNetReflector/JNetReflector.csproj b/src/net/JNetReflector/JNetReflector.csproj index c443de9b3f..41d1548b67 100644 --- a/src/net/JNetReflector/JNetReflector.csproj +++ b/src/net/JNetReflector/JNetReflector.csproj @@ -54,10 +54,15 @@ + + + + + @@ -77,8 +82,11 @@ + + +