From ffb10bceae798ae9a02a620f2fb57c34f269ed07 Mon Sep 17 00:00:00 2001 From: masesdevelopers <94312179+masesdevelopers@users.noreply.github.com> Date: Thu, 29 Aug 2024 19:15:32 +0200 Subject: [PATCH] Most exceptions and errors in java.lang will be reflected --- src/net/JNetReflector/InternalConst.cs | 98 +++++++++++----------- src/net/JNetReflector/JNetReflector.csproj | 45 ---------- 2 files changed, 49 insertions(+), 94 deletions(-) diff --git a/src/net/JNetReflector/InternalConst.cs b/src/net/JNetReflector/InternalConst.cs index 33b6a0655a..c3e5164ff8 100644 --- a/src/net/JNetReflector/InternalConst.cs +++ b/src/net/JNetReflector/InternalConst.cs @@ -121,55 +121,55 @@ public static bool IsJavaLangException(string canonicalName) static readonly IEnumerable JavaLangExceptions = new string[] { "java.lang.Throwable", - "java.lang.ArithmeticException", - "java.lang.ArrayIndexOutOfBoundsException", - "java.lang.ArrayStoreException", - "java.lang.ClassCastException", - "java.lang.ClassNotFoundException", - "java.lang.CloneNotSupportedException", - "java.lang.EnumConstantNotPresentException", - "java.lang.Exception", - "java.lang.IllegalAccessException", - "java.lang.IllegalArgumentException", - "java.lang.IllegalMonitorStateException", - "java.lang.IllegalStateException", - "java.lang.IllegalThreadStateException", - "java.lang.IndexOutOfBoundsException", - "java.lang.InstantiationException", - "java.lang.InterruptedException", - "java.lang.NegativeArraySizeException", - "java.lang.NoSuchFieldException", - "java.lang.NoSuchMethodException", - "java.lang.NullPointerException", - "java.lang.NumberFormatException", - "java.lang.ReflectiveOperationException", - "java.lang.RuntimeException", - "java.lang.SecurityException", - "java.lang.StringIndexOutOfBoundsException", - "java.lang.TypeNotPresentException", - "java.lang.UnsupportedOperationException", - "java.lang.AbstractMethodError", - "java.lang.AssertionError", - "java.lang.BootstrapMethodError", - "java.lang.ClassCircularityError", - "java.lang.ClassFormatError", - "java.lang.Error", - "java.lang.ExceptionInInitializerError", - "java.lang.IllegalAccessError", - "java.lang.IncompatibleClassChangeError", - "java.lang.InstantiationError", - "java.lang.InternalError", - "java.lang.LinkageError", - "java.lang.NoClassDefFoundError", - "java.lang.NoSuchFieldError", - "java.lang.NoSuchMethodError", - "java.lang.OutOfMemoryError", - "java.lang.StackOverflowError", - "java.lang.UnknownError", - "java.lang.UnsatisfiedLinkError", - "java.lang.UnsupportedClassVersionError", - "java.lang.VerifyError", - "java.lang.VirtualMachineError", + //"java.lang.ArithmeticException", + //"java.lang.ArrayIndexOutOfBoundsException", + //"java.lang.ArrayStoreException", + //"java.lang.ClassCastException", + //"java.lang.ClassNotFoundException", + //"java.lang.CloneNotSupportedException", + //"java.lang.EnumConstantNotPresentException", + //"java.lang.Exception", + //"java.lang.IllegalAccessException", + //"java.lang.IllegalArgumentException", + //"java.lang.IllegalMonitorStateException", + //"java.lang.IllegalStateException", + //"java.lang.IllegalThreadStateException", + //"java.lang.IndexOutOfBoundsException", + //"java.lang.InstantiationException", + //"java.lang.InterruptedException", + //"java.lang.NegativeArraySizeException", + //"java.lang.NoSuchFieldException", + //"java.lang.NoSuchMethodException", + //"java.lang.NullPointerException", + //"java.lang.NumberFormatException", + //"java.lang.ReflectiveOperationException", + //"java.lang.RuntimeException", + //"java.lang.SecurityException", + //"java.lang.StringIndexOutOfBoundsException", + //"java.lang.TypeNotPresentException", + //"java.lang.UnsupportedOperationException", + //"java.lang.AbstractMethodError", + //"java.lang.AssertionError", + //"java.lang.BootstrapMethodError", + //"java.lang.ClassCircularityError", + //"java.lang.ClassFormatError", + //"java.lang.Error", + //"java.lang.ExceptionInInitializerError", + //"java.lang.IllegalAccessError", + //"java.lang.IncompatibleClassChangeError", + //"java.lang.InstantiationError", + //"java.lang.InternalError", + //"java.lang.LinkageError", + //"java.lang.NoClassDefFoundError", + //"java.lang.NoSuchFieldError", + //"java.lang.NoSuchMethodError", + //"java.lang.OutOfMemoryError", + //"java.lang.StackOverflowError", + //"java.lang.UnknownError", + //"java.lang.UnsatisfiedLinkError", + //"java.lang.UnsupportedClassVersionError", + //"java.lang.VerifyError", + //"java.lang.VirtualMachineError", }; diff --git a/src/net/JNetReflector/JNetReflector.csproj b/src/net/JNetReflector/JNetReflector.csproj index 5409f9621f..166a3dbf4a 100644 --- a/src/net/JNetReflector/JNetReflector.csproj +++ b/src/net/JNetReflector/JNetReflector.csproj @@ -51,49 +51,15 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -111,19 +77,8 @@ - - - - - - - - - - -