public class org.graalvm.tools.insight.test.InsightExceptionTest
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: org.graalvm.tools.insight.test.InsightExceptionTest
  super_class: java.lang.Object
{
  private static java.lang.reflect.Method raiseMethod;
    descriptor: Ljava/lang/reflect/Method;
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC

  public void <init>();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // org.graalvm.tools.insight.test.InsightExceptionTest this
         0: .line 37
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
            return
        end local 0 // org.graalvm.tools.insight.test.InsightExceptionTest this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/graalvm/tools/insight/test/InsightExceptionTest;

  public static void initRaiseMethod();
    descriptor: ()V
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=6, locals=1, args_size=0
         0: .line 42
            ldc "com.oracle.truffle.tools.agentscript.impl.InsightException"
            invokestatic java.lang.Class.forName:(Ljava/lang/String;)Ljava/lang/Class;
            astore 0 /* insightException */
        start local 0 // java.lang.Class insightException
         1: .line 43
            aload 0 /* insightException */
            ldc "raise"
            iconst_1
            anewarray java.lang.Class
            dup
            iconst_0
            ldc Ljava/lang/Exception;
            aastore
            invokevirtual java.lang.Class.getDeclaredMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
            putstatic org.graalvm.tools.insight.test.InsightExceptionTest.raiseMethod:Ljava/lang/reflect/Method;
         2: .line 44
            getstatic org.graalvm.tools.insight.test.InsightExceptionTest.raiseMethod:Ljava/lang/reflect/Method;
            iconst_1
            invokevirtual java.lang.reflect.Method.setAccessible:(Z)V
         3: .line 45
            return
        end local 0 // java.lang.Class insightException
      LocalVariableTable:
        Start  End  Slot              Name  Signature
            1    4     0  insightException  Ljava/lang/Class<*>;
    Exceptions:
      throws java.lang.Exception
    RuntimeVisibleAnnotations: 
      org.junit.BeforeClass()

  public void raiseNPE();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=7, locals=4, args_size=1
        start local 0 // org.graalvm.tools.insight.test.InsightExceptionTest this
         0: .line 50
            getstatic org.graalvm.tools.insight.test.InsightExceptionTest.raiseMethod:Ljava/lang/reflect/Method;
            aconst_null
            iconst_1
            anewarray java.lang.Object
            dup
            iconst_0
            new java.lang.NullPointerException
            dup
            invokespecial java.lang.NullPointerException.<init>:()V
            aastore
            invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
            pop
         1: .line 51
            ldc "Should raise an exception"
            invokestatic org.junit.Assert.fail:(Ljava/lang/String;)V
         2: .line 52
            goto 9
      StackMap locals:
      StackMap stack: java.lang.reflect.InvocationTargetException
         3: astore 1 /* invEx */
        start local 1 // java.lang.reflect.InvocationTargetException invEx
         4: .line 53
            aload 1 /* invEx */
            invokevirtual java.lang.reflect.InvocationTargetException.getTargetException:()Ljava/lang/Throwable;
            astore 2 /* ex */
        start local 2 // java.lang.Throwable ex
         5: .line 54
            aload 2 /* ex */
            invokestatic org.junit.Assert.assertNotNull:(Ljava/lang/Object;)V
         6: .line 55
            aload 2 /* ex */
            invokevirtual java.lang.Throwable.getMessage:()Ljava/lang/String;
            astore 3 /* msg */
        start local 3 // java.lang.String msg
         7: .line 56
            aload 3 /* msg */
            invokestatic org.junit.Assert.assertNotNull:(Ljava/lang/Object;)V
         8: .line 57
            aload 3 /* msg */
            aload 3 /* msg */
            ldc "insight: Unexpected NullPointerException"
            invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
            invokestatic org.junit.Assert.assertTrue:(Ljava/lang/String;Z)V
        end local 3 // java.lang.String msg
        end local 2 // java.lang.Throwable ex
        end local 1 // java.lang.reflect.InvocationTargetException invEx
         9: .line 59
      StackMap locals:
      StackMap stack:
            return
        end local 0 // org.graalvm.tools.insight.test.InsightExceptionTest this
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0   10     0   this  Lorg/graalvm/tools/insight/test/InsightExceptionTest;
            4    9     1  invEx  Ljava/lang/reflect/InvocationTargetException;
            5    9     2     ex  Ljava/lang/Throwable;
            7    9     3    msg  Ljava/lang/String;
      Exception table:
        from    to  target  type
           0     2       3  Class java.lang.reflect.InvocationTargetException
    Exceptions:
      throws java.lang.Exception
    RuntimeVisibleAnnotations: 
      org.junit.Test()

  public void raisePatternException();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=6, locals=4, args_size=1
        start local 0 // org.graalvm.tools.insight.test.InsightExceptionTest this
         0: .line 65
            ldc "(unclosed"
            invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
            pop
         1: .line 66
            goto 4
      StackMap locals:
      StackMap stack: java.util.regex.PatternSyntaxException
         2: astore 1 /* ex */
        start local 1 // java.util.regex.PatternSyntaxException ex
         3: .line 67
            getstatic org.graalvm.tools.insight.test.InsightExceptionTest.raiseMethod:Ljava/lang/reflect/Method;
            aconst_null
            iconst_1
            anewarray java.lang.Object
            dup
            iconst_0
            aload 1 /* ex */
            aastore
            invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
            pop
        end local 1 // java.util.regex.PatternSyntaxException ex
         4: .line 69
      StackMap locals:
      StackMap stack:
            ldc "Should raise an exception"
            invokestatic org.junit.Assert.fail:(Ljava/lang/String;)V
         5: .line 70
            goto 12
      StackMap locals:
      StackMap stack: java.lang.reflect.InvocationTargetException
         6: astore 1 /* invEx */
        start local 1 // java.lang.reflect.InvocationTargetException invEx
         7: .line 71
            aload 1 /* invEx */
            invokevirtual java.lang.reflect.InvocationTargetException.getTargetException:()Ljava/lang/Throwable;
            astore 2 /* ex */
        start local 2 // java.lang.Throwable ex
         8: .line 72
            aload 2 /* ex */
            invokestatic org.junit.Assert.assertNotNull:(Ljava/lang/Object;)V
         9: .line 73
            aload 2 /* ex */
            invokevirtual java.lang.Throwable.getMessage:()Ljava/lang/String;
            astore 3 /* msg */
        start local 3 // java.lang.String msg
        10: .line 74
            aload 3 /* msg */
            invokestatic org.junit.Assert.assertNotNull:(Ljava/lang/Object;)V
        11: .line 75
            aload 3 /* msg */
            aload 3 /* msg */
            ldc "insight: Unclosed group near index 9: (unclosed"
            invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
            invokestatic org.junit.Assert.assertTrue:(Ljava/lang/String;Z)V
        end local 3 // java.lang.String msg
        end local 2 // java.lang.Throwable ex
        end local 1 // java.lang.reflect.InvocationTargetException invEx
        12: .line 77
      StackMap locals:
      StackMap stack:
            return
        end local 0 // org.graalvm.tools.insight.test.InsightExceptionTest this
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0   13     0   this  Lorg/graalvm/tools/insight/test/InsightExceptionTest;
            3    4     1     ex  Ljava/util/regex/PatternSyntaxException;
            7   12     1  invEx  Ljava/lang/reflect/InvocationTargetException;
            8   12     2     ex  Ljava/lang/Throwable;
           10   12     3    msg  Ljava/lang/String;
      Exception table:
        from    to  target  type
           0     1       2  Class java.util.regex.PatternSyntaxException
           0     5       6  Class java.lang.reflect.InvocationTargetException
    Exceptions:
      throws java.lang.Exception
    RuntimeVisibleAnnotations: 
      org.junit.Test()
}
SourceFile: "InsightExceptionTest.java"