public class com.oracle.svm.hosted.image.sources.SourceManager
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: com.oracle.svm.hosted.image.sources.SourceManager
  super_class: java.lang.Object
{
  com.oracle.svm.hosted.image.sources.SourceCache cache;
    descriptor: Lcom/oracle/svm/hosted/image/sources/SourceCache;
    flags: (0x0000) 

  private static java.util.HashMap<jdk.vm.ci.meta.ResolvedJavaType, java.nio.file.Path> verifiedPaths;
    descriptor: Ljava/util/HashMap;
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Signature: Ljava/util/HashMap<Ljdk/vm/ci/meta/ResolvedJavaType;Ljava/nio/file/Path;>;

  private static final java.nio.file.Path INVALID_PATH;
    descriptor: Ljava/nio/file/Path;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL

  static void <clinit>();
    descriptor: ()V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=2, locals=0, args_size=0
         0: .line 162
            new java.util.HashMap
            dup
            invokespecial java.util.HashMap.<init>:()V
            putstatic com.oracle.svm.hosted.image.sources.SourceManager.verifiedPaths:Ljava/util/HashMap;
         1: .line 168
            ldc "invalid"
            iconst_0
            anewarray java.lang.String
            invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
            putstatic com.oracle.svm.hosted.image.sources.SourceManager.INVALID_PATH:Ljava/nio/file/Path;
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  public void <init>();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // com.oracle.svm.hosted.image.sources.SourceManager this
         0: .line 40
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 42
            aload 0 /* this */
            new com.oracle.svm.hosted.image.sources.SourceCache
            dup
            invokespecial com.oracle.svm.hosted.image.sources.SourceCache.<init>:()V
            putfield com.oracle.svm.hosted.image.sources.SourceManager.cache:Lcom/oracle/svm/hosted/image/sources/SourceCache;
         2: .line 40
            return
        end local 0 // com.oracle.svm.hosted.image.sources.SourceManager this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Lcom/oracle/svm/hosted/image/sources/SourceManager;

  public java.nio.file.Path findAndCacheSource(jdk.vm.ci.meta.ResolvedJavaType, java.lang.Class<?>, org.graalvm.compiler.debug.DebugContext);
    descriptor: (Ljdk/vm/ci/meta/ResolvedJavaType;Ljava/lang/Class;Lorg/graalvm/compiler/debug/DebugContext;)Ljava/nio/file/Path;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=7, args_size=4
        start local 0 // com.oracle.svm.hosted.image.sources.SourceManager this
        start local 1 // jdk.vm.ci.meta.ResolvedJavaType resolvedType
        start local 2 // java.lang.Class clazz
        start local 3 // org.graalvm.compiler.debug.DebugContext debugContext
         0: .line 56
            getstatic com.oracle.svm.hosted.image.sources.SourceManager.verifiedPaths:Ljava/util/HashMap;
            aload 1 /* resolvedType */
            invokevirtual java.util.HashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
            checkcast java.nio.file.Path
            astore 4 /* path */
        start local 4 // java.nio.file.Path path
         1: .line 57
            aload 4 /* path */
            ifnull 5
         2: .line 58
            aload 4 /* path */
            getstatic com.oracle.svm.hosted.image.sources.SourceManager.INVALID_PATH:Ljava/nio/file/Path;
            if_acmpeq 3
            aload 4 /* path */
            goto 4
      StackMap locals: java.nio.file.Path
      StackMap stack:
         3: aconst_null
      StackMap locals:
      StackMap stack: java.nio.file.Path
         4: areturn
         5: .line 61
      StackMap locals:
      StackMap stack:
            aload 1 /* resolvedType */
            invokestatic com.oracle.svm.hosted.image.sources.SourceManager.computeBaseName:(Ljdk/vm/ci/meta/ResolvedJavaType;)Ljava/lang/String;
            astore 5 /* fileName */
        start local 5 // java.lang.String fileName
         6: .line 65
            aload 5 /* fileName */
            ifnull 16
         7: .line 69
            aload 1 /* resolvedType */
            invokeinterface jdk.vm.ci.meta.ResolvedJavaType.isInstanceClass:()Z
            ifne 8
            aload 1 /* resolvedType */
            invokeinterface jdk.vm.ci.meta.ResolvedJavaType.isInterface:()Z
            ifeq 16
         8: .line 70
      StackMap locals: java.lang.String
      StackMap stack:
            aload 1 /* resolvedType */
            invokestatic com.oracle.svm.hosted.image.sources.SourceManager.computePackageName:(Ljdk/vm/ci/meta/ResolvedJavaType;)Ljava/lang/String;
            astore 6 /* packageName */
        start local 6 // java.lang.String packageName
         9: .line 71
            aload 0 /* this */
            aload 5 /* fileName */
            aload 6 /* packageName */
            aload 2 /* clazz */
            invokevirtual com.oracle.svm.hosted.image.sources.SourceManager.locateSource:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Class;)Ljava/nio/file/Path;
            astore 4 /* path */
        10: .line 72
            aload 4 /* path */
            ifnonnull 16
        11: .line 74
            aload 3 /* debugContext */
            invokevirtual org.graalvm.compiler.debug.DebugContext.areScopesEnabled:()Z
            ifeq 13
        12: .line 75
            aload 3 /* debugContext */
            iconst_2
            ldc "Failed to find source file for class %s\n"
            aload 1 /* resolvedType */
            invokeinterface jdk.vm.ci.meta.ResolvedJavaType.toJavaName:()Ljava/lang/String;
            invokevirtual org.graalvm.compiler.debug.DebugContext.log:(ILjava/lang/String;Ljava/lang/Object;)V
        13: .line 77
      StackMap locals: java.lang.String
      StackMap stack:
            aload 6 /* packageName */
            invokevirtual java.lang.String.length:()I
            ifle 16
        14: .line 78
            ldc ""
            aload 6 /* packageName */
            ldc "\\."
            invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
            invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
            astore 4 /* path */
        15: .line 79
            aload 4 /* path */
            aload 5 /* fileName */
            invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
            astore 4 /* path */
        end local 6 // java.lang.String packageName
        16: .line 85
      StackMap locals:
      StackMap stack:
            getstatic com.oracle.svm.hosted.image.sources.SourceManager.verifiedPaths:Ljava/util/HashMap;
            aload 1 /* resolvedType */
            aload 4 /* path */
            ifnull 17
            aload 4 /* path */
            goto 18
      StackMap locals: com.oracle.svm.hosted.image.sources.SourceManager jdk.vm.ci.meta.ResolvedJavaType java.lang.Class org.graalvm.compiler.debug.DebugContext java.nio.file.Path java.lang.String
      StackMap stack: java.util.HashMap jdk.vm.ci.meta.ResolvedJavaType
        17: getstatic com.oracle.svm.hosted.image.sources.SourceManager.INVALID_PATH:Ljava/nio/file/Path;
      StackMap locals: com.oracle.svm.hosted.image.sources.SourceManager jdk.vm.ci.meta.ResolvedJavaType java.lang.Class org.graalvm.compiler.debug.DebugContext java.nio.file.Path java.lang.String
      StackMap stack: java.util.HashMap jdk.vm.ci.meta.ResolvedJavaType java.nio.file.Path
        18: invokevirtual java.util.HashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
            pop
        19: .line 87
            aload 4 /* path */
            areturn
        end local 5 // java.lang.String fileName
        end local 4 // java.nio.file.Path path
        end local 3 // org.graalvm.compiler.debug.DebugContext debugContext
        end local 2 // java.lang.Class clazz
        end local 1 // jdk.vm.ci.meta.ResolvedJavaType resolvedType
        end local 0 // com.oracle.svm.hosted.image.sources.SourceManager this
      LocalVariableTable:
        Start  End  Slot          Name  Signature
            0   20     0          this  Lcom/oracle/svm/hosted/image/sources/SourceManager;
            0   20     1  resolvedType  Ljdk/vm/ci/meta/ResolvedJavaType;
            0   20     2         clazz  Ljava/lang/Class<*>;
            0   20     3  debugContext  Lorg/graalvm/compiler/debug/DebugContext;
            1   20     4          path  Ljava/nio/file/Path;
            6   20     5      fileName  Ljava/lang/String;
            9   16     6   packageName  Ljava/lang/String;
    Signature: (Ljdk/vm/ci/meta/ResolvedJavaType;Ljava/lang/Class<*>;Lorg/graalvm/compiler/debug/DebugContext;)Ljava/nio/file/Path;
    MethodParameters:
              Name  Flags
      resolvedType  
      clazz         
      debugContext  

  private static java.lang.String computeBaseName(jdk.vm.ci.meta.ResolvedJavaType);
    descriptor: (Ljdk/vm/ci/meta/ResolvedJavaType;)Ljava/lang/String;
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=3, locals=3, args_size=1
        start local 0 // jdk.vm.ci.meta.ResolvedJavaType resolvedType
         0: .line 98
            aload 0 /* resolvedType */
            invokeinterface jdk.vm.ci.meta.ResolvedJavaType.isPrimitive:()Z
            ifeq 2
         1: .line 99
            aconst_null
            areturn
         2: .line 101
      StackMap locals:
      StackMap stack:
            aload 0 /* resolvedType */
            invokeinterface jdk.vm.ci.meta.ResolvedJavaType.getSourceFileName:()Ljava/lang/String;
            astore 1 /* fileName */
        start local 1 // java.lang.String fileName
         3: .line 102
            aload 1 /* fileName */
            ifnonnull 15
         4: .line 104
            aload 0 /* resolvedType */
            invokeinterface jdk.vm.ci.meta.ResolvedJavaType.toJavaName:()Ljava/lang/String;
            astore 1 /* fileName */
         5: .line 105
            aload 1 /* fileName */
            bipush 46
            invokevirtual java.lang.String.lastIndexOf:(I)I
            istore 2 /* idx */
        start local 2 // int idx
         6: .line 106
            iload 2 /* idx */
            ifle 8
         7: .line 108
            aload 1 /* fileName */
            iload 2 /* idx */
            iconst_1
            iadd
            invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
            astore 1 /* fileName */
         8: .line 110
      StackMap locals: java.lang.String int
      StackMap stack:
            aload 1 /* fileName */
            bipush 36
            invokevirtual java.lang.String.indexOf:(I)I
            istore 2 /* idx */
         9: .line 111
            iload 2 /* idx */
            ifne 12
        10: .line 114
            aconst_null
            astore 1 /* fileName */
        11: .line 115
            goto 15
        12: .line 116
      StackMap locals:
      StackMap stack:
            iload 2 /* idx */
            ifle 14
        13: .line 118
            aload 1 /* fileName */
            iconst_0
            iload 2 /* idx */
            invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
            astore 1 /* fileName */
        14: .line 120
      StackMap locals:
      StackMap stack:
            new java.lang.StringBuilder
            dup
            aload 1 /* fileName */
            invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            ldc ".java"
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            astore 1 /* fileName */
        end local 2 // int idx
        15: .line 123
      StackMap locals:
      StackMap stack:
            aload 1 /* fileName */
            areturn
        end local 1 // java.lang.String fileName
        end local 0 // jdk.vm.ci.meta.ResolvedJavaType resolvedType
      LocalVariableTable:
        Start  End  Slot          Name  Signature
            0   16     0  resolvedType  Ljdk/vm/ci/meta/ResolvedJavaType;
            3   16     1      fileName  Ljava/lang/String;
            6   15     2           idx  I
    MethodParameters:
              Name  Flags
      resolvedType  

  private static java.lang.String computePackageName(jdk.vm.ci.meta.ResolvedJavaType);
    descriptor: (Ljdk/vm/ci/meta/ResolvedJavaType;)Ljava/lang/String;
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=3, locals=3, args_size=1
        start local 0 // jdk.vm.ci.meta.ResolvedJavaType javaType
         0: .line 133
            aload 0 /* javaType */
            invokeinterface jdk.vm.ci.meta.ResolvedJavaType.toClassName:()Ljava/lang/String;
            astore 1 /* name */
        start local 1 // java.lang.String name
         1: .line 134
            aload 1 /* name */
            bipush 46
            invokevirtual java.lang.String.lastIndexOf:(I)I
            istore 2 /* idx */
        start local 2 // int idx
         2: .line 135
            iload 2 /* idx */
            ifle 4
         3: .line 136
            aload 1 /* name */
            iconst_0
            iload 2 /* idx */
            invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
            areturn
         4: .line 138
      StackMap locals: java.lang.String int
      StackMap stack:
            ldc ""
            areturn
        end local 2 // int idx
        end local 1 // java.lang.String name
        end local 0 // jdk.vm.ci.meta.ResolvedJavaType javaType
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0    5     0  javaType  Ljdk/vm/ci/meta/ResolvedJavaType;
            1    5     1      name  Ljava/lang/String;
            2    5     2       idx  I
    MethodParameters:
          Name  Flags
      javaType  

  private static java.nio.file.Path computePrototypeName(java.lang.String, java.lang.String);
    descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljava/nio/file/Path;
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=5, locals=2, args_size=2
        start local 0 // java.lang.String fileName
        start local 1 // java.lang.String packageName
         0: .line 151
            aload 1 /* packageName */
            invokevirtual java.lang.String.length:()I
            ifne 2
         1: .line 152
            ldc ""
            iconst_1
            anewarray java.lang.String
            dup
            iconst_0
            aload 0 /* fileName */
            aastore
            invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
            areturn
         2: .line 154
      StackMap locals:
      StackMap stack:
            ldc ""
            aload 1 /* packageName */
            ldc "\\."
            invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
            invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
            aload 0 /* fileName */
            invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
            areturn
        end local 1 // java.lang.String packageName
        end local 0 // java.lang.String fileName
      LocalVariableTable:
        Start  End  Slot         Name  Signature
            0    3     0     fileName  Ljava/lang/String;
            0    3     1  packageName  Ljava/lang/String;
    MethodParameters:
             Name  Flags
      fileName     
      packageName  

  private java.nio.file.Path locateSource(java.lang.String, java.lang.String, java.lang.Class<?>);
    descriptor: (Ljava/lang/String;Ljava/lang/String;Ljava/lang/Class;)Ljava/nio/file/Path;
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=3, locals=5, args_size=4
        start local 0 // com.oracle.svm.hosted.image.sources.SourceManager this
        start local 1 // java.lang.String fileName
        start local 2 // java.lang.String packagename
        start local 3 // java.lang.Class clazz
         0: .line 171
            aload 1 /* fileName */
            aload 2 /* packagename */
            invokestatic com.oracle.svm.hosted.image.sources.SourceManager.computePrototypeName:(Ljava/lang/String;Ljava/lang/String;)Ljava/nio/file/Path;
            astore 4 /* prototypeName */
        start local 4 // java.nio.file.Path prototypeName
         1: .line 172
            aload 4 /* prototypeName */
            ifnull 3
         2: .line 173
            aload 0 /* this */
            getfield com.oracle.svm.hosted.image.sources.SourceManager.cache:Lcom/oracle/svm/hosted/image/sources/SourceCache;
            aload 4 /* prototypeName */
            aload 3 /* clazz */
            invokevirtual com.oracle.svm.hosted.image.sources.SourceCache.resolve:(Ljava/nio/file/Path;Ljava/lang/Class;)Ljava/nio/file/Path;
            areturn
         3: .line 175
      StackMap locals: java.nio.file.Path
      StackMap stack:
            aconst_null
            areturn
        end local 4 // java.nio.file.Path prototypeName
        end local 3 // java.lang.Class clazz
        end local 2 // java.lang.String packagename
        end local 1 // java.lang.String fileName
        end local 0 // com.oracle.svm.hosted.image.sources.SourceManager this
      LocalVariableTable:
        Start  End  Slot           Name  Signature
            0    4     0           this  Lcom/oracle/svm/hosted/image/sources/SourceManager;
            0    4     1       fileName  Ljava/lang/String;
            0    4     2    packagename  Ljava/lang/String;
            0    4     3          clazz  Ljava/lang/Class<*>;
            1    4     4  prototypeName  Ljava/nio/file/Path;
    Signature: (Ljava/lang/String;Ljava/lang/String;Ljava/lang/Class<*>;)Ljava/nio/file/Path;
    MethodParameters:
             Name  Flags
      fileName     
      packagename  
      clazz        
}
SourceFile: "SourceManager.java"